Skip to content

Commit 4855f19

Browse files
committed
core: fix preCheck for RandomizeSMC after EIP-1559
1 parent 370c6b6 commit 4855f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func (st *StateTransition) preCheck() error {
267267
}
268268
// This will panic if baseFee is nil, but basefee presence is verified
269269
// as part of header validation.
270-
if st.gasFeeCap.Cmp(st.evm.Context.BaseFee) < 0 {
270+
if (msg.To() == nil || *msg.To() != common.RandomizeSMCBinary) && st.gasFeeCap.Cmp(st.evm.Context.BaseFee) < 0 {
271271
return fmt.Errorf("%w: address %v, maxFeePerGas: %s baseFee: %s", ErrFeeCapTooLow,
272272
msg.From().Hex(), st.gasFeeCap, st.evm.Context.BaseFee)
273273
}

0 commit comments

Comments
 (0)