-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Transaction reverted: function selector was not recognized and there's no fallback function #257
Comments
@PatrickAlphaC , I'm a big fan of yours and appreciate all you do. I'm working on a project unrelated to this and am getting a similar error. My setup is very similar to yours and my application was working fine until I started trying to add another chain. Now, no matter what I do, even undoing all changes, I am getting the same error you describe:
It seems like some issue with Hardhat, but I've been fiddling around with it for a few days now and cannot find a solution. I was wondering if you found an easy one |
@Y0moo any thoughts on the above? A few people have run into this. |
@PatrickAlphaC @paulgs9988 anyone has a fix for this ? |
did anybody solve this ? please |
@usman571 smartcontractkit/full-blockchain-solidity-course-js#315 (comment) explains the issue and how to fix it. |
New Bug Report
Checklist
Issue Description
Steps + code to reproduce
Then, in another terminal
Go to the UI created at
http://localhost:3000
, and go into your wallet and add the hardhat network:Then, go to
import accounts
and add one of the private keys the hardhat node gave you.On
http://localhost:3000
, hit theenter raffle
button, and you'll see the error in your hardhat terminal. However, the contract clearly has anenterRaffle
function.In our react code, we use the
runContractFunction
hook like so:And call it in a button:
Actual Outcome
Expected Outcome
The transaction does not error
Environment
Server
Client
1.4.0
1.8.0
Mac OS
Brave
The text was updated successfully, but these errors were encountered: