Skip to content

Commit

Permalink
core/vm: reuse ErrMaxInitCodeSizeExceeded as error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Apr 13, 2023
1 parent cf9d6a6 commit 3265ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3265ea3

Please sign in to comment.