Skip to content

Commit 028eb30

Browse files
authored
Merge pull request #3 from morph-l2/fix
Fix balance check
2 parents ae47a7a + c9d1b78 commit 028eb30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/primitives/src/env.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ impl Env {
286286
});
287287
}
288288
} else {
289-
if self.cfg.is_balance_check_disabled() || self.tx.morph.is_l1_msg {
289+
if self.cfg.is_balance_check_disabled() {
290290
// Add transaction cost to balance to ensure execution doesn't fail.
291291
account.info.balance = balance_check;
292-
} else {
292+
} else if !self.tx.morph.is_l1_msg{
293293
return Err(InvalidTransaction::LackOfFundForMaxFee {
294294
fee: Box::new(balance_check),
295295
balance: Box::new(account.info.balance),

0 commit comments

Comments
 (0)