Enable relayer to use ESTIMATION_ADDRESS (0x1) when estimating relays from optimism #1945
Labels
contracts 🧾
needs discussion
Unclear issue description and needs further discussion before refinement can be done
relayer
We cannot use the 0x1 Estimation address hack by Optimism because we use the tx.origin in ArbitrumL1Messenger as authentithicaiton for payment of the submission fee. 0x1 during estimation has a deposit of 0 -> revert.
This imposes the problem that the gas estimation cannot be used and the agent needs to try and retry blindly until relaying a message works. This could drain the agent’s funds.
Options
We can get back to the OP hack once we either don’t use the
tx.origin in the ArbitrumL1Messenger anymore or we are able to deposit on behalf of “0x1” (hack for the hack)
Edit: We could actually hardcode a deposit of the 0x1 address. There is no need to actually deposit anything.
The text was updated successfully, but these errors were encountered: