Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relayer: use callStatic in OP relayer in order to detect & prevent submission of failing txs #1998

Open
GabrielBuragev opened this issue Jun 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@GabrielBuragev
Copy link
Contributor

After OP Bedrock, the way our OP relayer works changed.
It is no longer able to do gas estimations before submitting the transactions on L1, therefore it cannot detect failing transactions.
As an alternative we can use a call to contract.callStatic.method_name before actually submitting the transaction on chain.
This is free and provides a way to check if a transaction will fail.

@GabrielBuragev GabrielBuragev added the bug Something isn't working label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant