Skip to content

Commit

Permalink
explicit check of paymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrigada committed Oct 1, 2024
1 parent c7d8a47 commit c020aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/zksync/core/src/vm/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ where
}
let max_fee_per_gas = fix_l2_gas_price(ecx.env.tx.gas_price.to_u256());

let gas_limit = if paymaster_params.paymaster != Address::ZERO.to_h160() {
// If paymaster is set, use the proposed gas limit
// We check if the paymaster is set, if it is not set, we use the proposed gas limit
let gas_limit = if paymaster_params.paymaster.is_zero() {
ecx.env.tx.gas_limit.into()
} else {
fix_l2_gas_limit(ecx.env.tx.gas_limit.into(), max_fee_per_gas, value, balance)
Expand Down

0 comments on commit c020aca

Please sign in to comment.