await contract.methods.set(98,"h").send({ from: accounts[0]});

I am trying to store uint and string but the error always came up:

Unhandled Rejection (Error): This contract object doesn't have address set yet, please set an address first.

Its work fine when I try to store the uint only. I also have changed my smart contract and tested on remix and it works fine to store both uint and string.


1 Answer 1


solved. Sorry I forget to add the file in the migrate floder.

  • 3
    Can you add more details? How the migration file looks like.
    – Ismael
    Commented Sep 9, 2021 at 1:29

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.