cmd/evm/internal/t8ntool: fix code-chunk-key args

This commit is contained in:
BZO95 2026-03-03 15:24:37 +08:00
parent d318e8eba9
commit 9a4d8a10da

View file

@ -541,7 +541,7 @@ func genBinTrieFromAlloc(alloc core.GenesisAlloc, db database.NodeDatabase) (*bi
// BinaryCodeChunkKey computes the tree key of a code-chunk for a given address.
func BinaryCodeChunkKey(ctx *cli.Context) error {
if ctx.Args().Len() == 0 || ctx.Args().Len() > 2 {
if ctx.Args().Len() != 2 {
return errors.New("invalid number of arguments: expecting an address and an code-chunk number")
}