op-stack support state overrides #2689
Replies: 3 comments 1 reply
-
Also, if anyone is having the same issue as me for smart wallets specifically, setting the |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, but my use case is that I want to estimate the fee on the frontend to guide users to deduct the gas fee from the value instead of paying their maximum balance. The failed contract call to @jxom, I can work on this PR. For instance, we could add a |
Beta Was this translation helpful? Give feedback.
-
Unrelated question (I raised this several times in the past) Could you enlighten me here? Sorry for the off-topic question. |
Beta Was this translation helpful? Give feedback.
-
Problem
The following op-stack actions do not support state overrides:
depositTransaction
estimateDepositTransactionGas
(called by the above for gas estimation)This hinders use cases with smart wallets where the gas cost of the transaction might be ultimately be paid by a bundler. With state overrides, we could set the balance of the smart wallet to say 1 ETH and then estimate gas properly.
Use Case
Using op-stack extension to bridge eth using smart wallets & paymasters:
This fails at the gas estimation stage of the UserOp when bridging the full balance of the smart wallet despite it being technically possible. This is because the gas estimation just assumes the call is being paid for by the smart wallet address.
Solution
It would be nice for the above actions to align with the
estimateContractGas
&estimateGas
interfaces to support state overrides.Beta Was this translation helpful? Give feedback.
All reactions