so i am building a dapp with ink it has messages to get data and put data and on FE when i logged in with the polkadot-js extension wallet everytime i reload the page it asks me to sign the transaction beacuase it makes a call to the contract messages to get and display the data what will be the best solution for it, i thought about implementing a cache mechanism or redis database to store data which already has been fetched and if the data is there no need to make a call to the message again. but i don't know if there is any other way to getting rid of this may be from contract side ?

  • 1
    It is not possible to answer to the question if you don't provide more details, code snippets if possible. If you just reading from a smart contract signer wouldn't pop for that case.
    – Bobo K.
    Commented Jul 10, 2023 at 12:32
  • You do not need to sign get messages from the frontend. Check that you do not have &mut self in your get message.
    – Maario
    Commented Jul 10, 2023 at 13:59
  • something is triggering this sign action, can you share your code or more information?
    – Alex Bean
    Commented Jul 17, 2023 at 12:18


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.