Skip to content

Uncaught execption in JSON-RPC with Geth #105

Open
@o1lo01ol1o

Description

@o1lo01ol1o
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions