Replies: 1 comment 8 replies
-
@jmusun1 As the error says, you should use the same address that you use for deploying the smart contract, after running the local hardhat node, copy the private key of the first account and import it into metamask and then perform (if you deployed the contract with that address, we use deployer address in the course that indicates the first address of hardhat). |
Beta Was this translation helpful? Give feedback.
8 replies
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.
-
Calling the fund, balance functions on FundMe contract work fine when calling from HTML->Javascript. But, withdraw function fails with the following error:
In addition, Metamask is never prompted for confirmation when calling the withdraw function unlike calling the fundMe function.
Here is my javascript function for withdraw:
Withdraw code in the FundMe contract is as follows:
Beta Was this translation helpful? Give feedback.
All reactions