When calling sendMessage(regardless of the L2) gas fees are split into two:
Ethereum gas fees (the standard L1 fee)
L2 Fees
Docs from optimism about setting the gas limit(this is also valid for most L2s) - https://docs.optimism.io/builders/app-developers/bridging/messaging
This means that a transaction can succeed in L1 but fail in L2 if the gas limit is not set properly. Once this happens, the user will lose all the gas fees spent.
The user will lose the money spent on gas fees and will not have his Beans migrated on the first attempt.
Manual Review
Define a minimum amount of gas fees expected to execute the transaction before calling sendMessage
, so it guarantees that the transaction will not fail.
Reference: https://docs.optimism.io/builders/app-developers/bridging/messaging
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.