CONTRACTS_ABI_MISMATCH
ABI doesn't match deployed contract
What happened
The ABI passed to createTypedContract({ abi, address }) doesn't match the deployed bytecode — typically a stale codegen output after the contract was redeployed.
How to fix
Re-run 0g contracts generate --abi <fresh-forge-artifact>.json --out <dir> to refresh the typed client.
Example
0g contracts generate --abi ./out/MyContract.sol/MyContract.json --out ./src/typed
Reference
- Namespace:
CONTRACTS - Help URL:
https://0gkit.com/errors/CONTRACTS_ABI_MISMATCH - See also: all error codes