diff --git a/cmd/evm/internal/t8ntool/transaction.go b/cmd/evm/internal/t8ntool/transaction.go index 2bc997e668..35ecd0f64c 100644 --- a/cmd/evm/internal/t8ntool/transaction.go +++ b/cmd/evm/internal/t8ntool/transaction.go @@ -173,7 +173,7 @@ func Transaction(ctx *cli.Context) error { } // Check whether the init code size has been exceeded. if chainConfig.IsBoneh(new(big.Int)) && tx.To() == nil && len(tx.Data()) > params.MaxInitCodeSize { - r.Error = errors.New("max initcode size exceeded") + r.Error = core.ErrMaxInitCodeSizeExceeded } results = append(results, r) }