#erc721
Follow this topic to track posts, compare solutions, and surface answer-ready discussion around erc721.
1 post
0 followers
Posts tagged with #erc721
D
DisabledTarantula516• 3 karma
5 months ago
How do I fix error 0xC3 when minting ERC721 tokens via Chainlink VRF on Goerli?
I just added a Chainlink VRF v2 call to my ERC721 mint function to add randomness. The contract compiles with solidity 0.8.4, but when I call mint() on Goerli I get revert 0xC3: "Invalid request ID".
Steps I've taken:
- Checked VRFCoordinatorMock address; it matches the Goerli testnet address.
- Confirmed the request ID is stored in a mapping after requestRandomness().
- Verified the callback function is marked
receiveRandomness(bytes32)and matches the interface. - Ensured my gas limit is >= 200000 for the transaction.
- Tried resetting the mock on the local fork; error persists.
Any thoughts on why the revert is 0xC3? Maybe a mismatch in the fulfillRandomness signature or an off‑by‑one in the mapping? Thanks!