Skip to content

Commit

Permalink
Add empty uint256 to st.emv.BlobFee for DepositTx because deposit tx …
Browse files Browse the repository at this point in the history
…doesn't pay gas on L2
  • Loading branch information
mininny committed Oct 10, 2024
1 parent 782c79d commit 58a317c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func (st *StateTransition) preCheck(gasBailout bool) error {
// Gas is free, but no refunds!
st.initialGas = st.msg.Gas()
st.gasRemaining += st.msg.Gas() // Add gas here in order to be able to execute calls.
st.evm.BlobFee = new(uint256.Int)
// Don't touch the gas pool for system transactions
if st.msg.IsSystemTx() {
if st.evm.ChainConfig().IsOptimismRegolith(st.evm.Context.Time) {
Expand Down

0 comments on commit 58a317c

Please sign in to comment.