Skip to content

Commit

Permalink
ignore init code size limit (ava-labs#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 authored and zfy0701 committed Mar 14, 2024
1 parent 979c4ff commit 673fe18
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 @@ -418,7 +418,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
}

// Check whether the init code size has been exceeded.
if rules.IsDurango && contractCreation && len(msg.Data) > params.MaxInitCodeSize {
if !st.evm.Config.IgnoreCodeSizeLimit && rules.IsDurango && contractCreation && len(msg.Data) > params.MaxInitCodeSize {
return nil, fmt.Errorf("%w: code size %v limit %v", vmerrs.ErrMaxInitCodeSizeExceeded, len(msg.Data), params.MaxInitCodeSize)
}

Expand Down

0 comments on commit 673fe18

Please sign in to comment.