[Lesson 8] Error: Transaction reverted: function selector was not recognized and there's no fallback function` #554
-
| When running transaction as seen in 13:17:59 into the course, terminal spits out this error several times at every attempt to fund the contract. =============================================================================== Online research has provided no valid answer to this error. Hopefully a solution will come up here. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
I am facing the same issue! I have no solution so far... |
Beta Was this translation helpful? Give feedback.
-
@igrs08 As I moved forward with the lesson I get the transaction listen on my console as seen below but still the same issue in terminal =============================================================================== |
Beta Was this translation helpful? Give feedback.
-
I commented out the code below and it worked as expected: require( There is something making the evaluation to be always false. |
Beta Was this translation helpful? Give feedback.
-
If you're getting this message in the Visual Studio Code terminal where you started your local hardhat node AND you're also getting this message in the "Console" of your Chrome "Developer Tools": then you simply need to follow the instruction at 13:19:00 (Resetting an Account in Metamask): Settings -> Advanced -> Reset Account In my case, my metamask is connected to account Account #0: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 of my local hardhat node: You won't get this issue the first time you connect to your local hardhat node with one of the accounts that it provides. You'll get this issue after you restart the hardhat node and use the same account that you were previously using (in my case 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266). Resetting the transaction history of the account that you're using (Settings -> Advanced -> Reset Account) resets the nonce that your account is sending to your local hardhat node. Which should solve the problem. You'll see from the UI that the balance of the FundMe account is being updated and that you can also withdraw funds from it. If you still see the following message in the Visual Studio Code terminal where you started your local hardhat node, then just ignore it. |
Beta Was this translation helpful? Give feedback.
-
I am also facing the same error, not sure if its worth spending the time to fix. Tried resetting the account but still get the same error eventhough transactions are going through on the metamask UI |
Beta Was this translation helpful? Give feedback.
-
@navillanueva @giovannipcruz @DorianDaSilva Please reset your metamask and this will resolve the issue, I faced the same In advanced section , you can find the redish button to reset: And also change the chainId in your metamasks's localhost hardhat network, chainId -> 31337 if it is only 1337 Good luck |
Beta Was this translation helpful? Give feedback.
@igrs08 As I moved forward with the lesson I get the transaction listen on my console as seen below but still the same issue in terminal
===============================================================================
|It seems to be a bug with hardhat localhost. Hopefully someone will find a work around for it but on the mean time, does the transaction and app actual function properly?