Skip to content

Commit

Permalink
core: Don't require L1 cost to be paid when simulating transactions (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton authored Mar 8, 2023
1 parent 0053f4a commit 13ee9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (st *StateTransition) buyGas() error {
mgval := new(big.Int).SetUint64(st.msg.Gas())
mgval = mgval.Mul(mgval, st.gasPrice)
var l1Cost *big.Int
if st.evm.Context.L1CostFunc != nil {
if st.evm.Context.L1CostFunc != nil && !st.msg.IsFake() {
l1Cost = st.evm.Context.L1CostFunc(st.evm.Context.BlockNumber.Uint64(), st.evm.Context.Time, st.msg)
}
if l1Cost != nil {
Expand Down

0 comments on commit 13ee9ab

Please sign in to comment.