From 3265ea377c80c9c9d764b5c1ae9dbed201f8e99d Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 13 Apr 2023 15:24:48 +0800 Subject: [PATCH] core/vm: reuse ErrMaxInitCodeSizeExceeded as error message --- cmd/evm/internal/t8ntool/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }