Unabale to call solidity view function using ethersjs #2916
Unanswered
Rushanksavant
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you include the ABI? My guess is you did not wait for the transaction to be mined? You need to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have defined a getter function in my contract which returns value from the nested mapping(public variable). While trying to get the value using ethersjs, it is returning me undefined even after updating the nested mapping.
Contract:
Ethersjs code:
On calling
updateName()
, the transaction is successful, butProfile_name
remains undefined. (I am using hardhat localhost node) I have verifiedProfileAddress
,Profile.abi
parametersThanks in advance!
This is an exception issue
Beta Was this translation helpful? Give feedback.
All reactions