TypeError: contract.store is not a function #292
-
I don't know why it isn't letting me deploy a contract when trying to input a favorite number. It says there's something wrong with
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
whats the error? and could you paste your contract? You could paste the code from the repo to see if the issue is with your deploy script. |
Beta Was this translation helpful? Give feedback.
-
I skipped vanilla ethers.js deployment so I am not 100% sure, but could you please try this instead when calling |
Beta Was this translation helpful? Give feedback.
-
@rileymross Everything seems correct, make sure the contract is compiled correctly and abi file contains that store function. And let me know, is the retrieve() function working? |
Beta Was this translation helpful? Give feedback.
@rileymross Everything seems correct, make sure the contract is compiled correctly and abi file contains that store function.
And let me know, is the retrieve() function working?