mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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 {
|
||||
if rules.IsAmsterdam {
|
||||
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 {
|
||||
if size > params.MaxInitCodeSize {
|
||||
|
|
|
|||
Loading…
Reference in a new issue