kinode-dao / kinode

Kinode OS runtime
https://kinode.org
Apache License 2.0
32 stars 12 forks source link

eth: explicit rpc error return #383

Closed bitful-pannul closed 3 months ago

bitful-pannul commented 3 months ago

Problem

If I send a signed transaction that will fail on the rpc level, for example with too low a gas level, the eth runtime currently does a few things:

receives error, assumes something is wrong with the provider, returns a NoRpcFound error, restart subscriptions.

Solution

If ErrResponse from provider, to_string() it and return it to the user so they know what went wrong.

Notes

corresponding process_lib update: https://github.com/kinode-dao/process_lib/pull/80