Open
Description
tmp' :: IO ()
tmp' = do
r <- runWeb3 foo
case r of
Left errr -> putStrLn "an error"
Right a -> putStrLn "ok"
In the event of insufficient funds, the above will throw an uncaught exception:
*** Exception: CallException JSON-RPC error -32000: err: insufficient funds for transfer (supplied gas 4010499). Data: Nothing
This is using geth 1.9.24-stable on Ropsten:
geth --http --rpc --ropsten