Skip to content

Commit a5a92c6

Browse files
lwedge99zfy0701
authored andcommitted
ignore init code size limit (OffchainLabs#10)
1 parent 24ff182 commit a5a92c6

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
@@ -450,7 +450,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
450450
}
451451

452452
// Check whether the init code size has been exceeded.
453-
if rules.IsShanghai && contractCreation && len(msg.Data) > int(st.evm.ChainConfig().MaxInitCodeSize()) {
453+
if !st.evm.Config.IgnoreCodeSizeLimit && rules.IsShanghai && contractCreation && len(msg.Data) > int(st.evm.ChainConfig().MaxInitCodeSize()) {
454454
return nil, fmt.Errorf("%w: code size %v limit %v", ErrMaxInitCodeSizeExceeded, len(msg.Data), int(st.evm.ChainConfig().MaxInitCodeSize()))
455455
}
456456

0 commit comments

Comments
 (0)