Open PatrickAlphaC opened 2 years ago
@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:
eth_call
Contract call: Escrow#<unrecognized-selector>
From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
To: 0xe7f1725e7734ce288f8367e1bb143e90bb3f0512
Error: Transaction reverted: function selector was not recognized and there's no fallback function
at Escrow.<unrecognized-selector> (contracts/Escrow.sol:12)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
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