conversions. -compilable-
This commit is contained in:
@ -302,7 +302,7 @@ func dump(ctx *cli.Context) {
|
||||
for _, arg := range ctx.Args() {
|
||||
var block *types.Block
|
||||
if hashish(arg) {
|
||||
block = chainmgr.GetBlock(common.Hex2Bytes(arg))
|
||||
block = chainmgr.GetBlock(common.HexToHash(arg))
|
||||
} else {
|
||||
num, _ := strconv.Atoi(arg)
|
||||
block = chainmgr.GetBlockByNumber(uint64(num))
|
||||
|
Reference in New Issue
Block a user