Lesson 8: unable to call fund #3307
Replies: 3 comments 2 replies
-
oh, this looks like its cuz your using hardhat node and you put some miles on the test account they gave you. you can use a different account or try setting the nonce for the transaction before sending it. You can pass it as the second params in an object to the contract method |
Beta Was this translation helpful? Give feedback.
-
So apparently, by the time I click the But the metamask modal pops up, accept the transaction and get the following response showed in the console log (no error this time) Maybe I should also add that when running the tests, they all pass. |
Beta Was this translation helpful? Give feedback.
-
Did you get this figured out? I suspect that the multiple calls, metamask is somehow triggering multiple calls to the fund function. Since 1 of the calls goes through, additional calls will have a null value for You can check out these posts: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is what I currently have in
index.js
For
contractAddress
, I'm using the address where the contract was deployed atand the abi is the one found in the previous project.
I can click the fund button and the metamask modal pops up, but when I accept the transaction, I get the following error when console logging
transactionResponse
And on the terminal, I get this
Beta Was this translation helpful? Give feedback.
All reactions