mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
Apply suggestion from @MariusVanDerWijden
This commit is contained in:
parent
68bd04fa47
commit
173e6a0aa8
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ import (
|
||||||
func CheckMaxInitCodeSize(rules *params.Rules, size uint64) error {
|
func CheckMaxInitCodeSize(rules *params.Rules, size uint64) error {
|
||||||
if rules.IsAmsterdam {
|
if rules.IsAmsterdam {
|
||||||
if size > params.MaxInitCodeSizeAmsterdam {
|
if size > params.MaxInitCodeSizeAmsterdam {
|
||||||
return fmt.Errorf("%w: code size %v limit %v", ErrMaxInitCodeSizeExceeded, size, params.MaxCodeSizeAmsterdam)
|
return fmt.Errorf("%w: code size %v limit %v", ErrMaxInitCodeSizeExceeded, size, params.MaxInitCodeSizeAmsterdam)
|
||||||
}
|
}
|
||||||
} else if rules.IsShanghai {
|
} else if rules.IsShanghai {
|
||||||
if size > params.MaxInitCodeSize {
|
if size > params.MaxInitCodeSize {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue