Advanced
Colin Armstrong@colin
4/23/2023

On-chain development often frustrates me from a tooling and UX perspective. “Transaction reverted, cannot estimate gas” but why???? It’s a joy building on NextJS, but I dread every time I touch the solidity part of the codebase.

In reply to @colin
Tayyab is Onchain@tayyab
4/23/2023

Facts. Solidity or RPC error handling is so infuriating.

In reply to @colin
Yash Karthik@yashkarthik
4/23/2023

the solidity part is fine when alone it's the intersection between web and contracts, the rpc stuff

In reply to @colin
Wesley@degenwes
4/23/2023

Yeah that error is so frustrating, way to much of a catch all for whatever random issue

In reply to @colin
SonOfMosiah@sonofmosiah
4/24/2023

I’ve found Viem typically gives much better errors over Ethers/web3, but it’s dependent on the Abi information (if contract interaction)