mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
cmd/evm/internal/t8ntool: fix code-chunk-key args
This commit is contained in:
parent
d318e8eba9
commit
9a4d8a10da
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue