Content pfp
Content
@
0 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
Anyone have ideas on why viem would show error codes locally with http() and anvil... but doesn't on production with an alchemy rpc on base? And just shows a generic revert error?
1 reply
0 recast
2 reactions

jxom  pfp
jxom
@jxom
Maybe the RPC Provider or Node isn't returning the error code in the JSON-RPC error response.
1 reply
0 recast
2 reactions

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
yeah, it could be something like that. I think I got it working by using viem's simulateContract function. and different error handling around it.
0 reply
0 recast
0 reaction