0
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.

0

1 Answer 1

0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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