arbiter icon indicating copy to clipboard operation
arbiter copied to clipboard

feat(`ethereum`): allow tx reverts to not pay gas

Open Autoparallel opened this issue 1 year ago • 0 comments

Idea

Since wallets typically simulate a transaction prior to sending to chain in order to not waste gas, we should mimic this functionality with minimal overhead, i.e., without actually simulating the tx first (if possible).

Solution

Conceivably we could create an inspector that checks if a tx reverts and removes gas from being paid. I'm not sure this is possible, but I want to give it a shot.

Autoparallel avatar Feb 01 '24 15:02 Autoparallel