We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae47a7a + c9d1b78 commit 028eb30Copy full SHA for 028eb30
crates/primitives/src/env.rs
@@ -286,10 +286,10 @@ impl Env {
286
});
287
}
288
} else {
289
- if self.cfg.is_balance_check_disabled() || self.tx.morph.is_l1_msg {
+ if self.cfg.is_balance_check_disabled() {
290
// Add transaction cost to balance to ensure execution doesn't fail.
291
account.info.balance = balance_check;
292
- } else {
+ } else if !self.tx.morph.is_l1_msg{
293
return Err(InvalidTransaction::LackOfFundForMaxFee {
294
fee: Box::new(balance_check),
295
balance: Box::new(account.info.balance),
0 commit comments