From 1f5da00f7bceb26798586ace85823b1f3137b522 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 20 Mar 2024 20:49:22 +0800 Subject: [PATCH] cmd/geth: fix format --- cmd/geth/dbcmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/geth/dbcmd.go b/cmd/geth/dbcmd.go index 47f6640923..8fe1abc76d 100644 --- a/cmd/geth/dbcmd.go +++ b/cmd/geth/dbcmd.go @@ -224,7 +224,7 @@ WARNING: This is a low-level operation which may cause database corruption!`, }, &cli.BoolFlag{ Name: "raw", - Usage: "display the decoded raw state value", + Usage: "display the decoded raw state value (otherwise shows rlp-encoded value)", }, }, utils.NetworkFlags, utils.DatabaseFlags), Description: "This command queries the history of the account or storage slot within the specified block range", @@ -808,11 +808,11 @@ func inspectAccount(db *triedb.Database, start uint64, end uint64, address commo } code := "" if len(account.CodeHash) > 0 { - code = fmt.Sprintf("%x", common.Bytes2Hex(account.CodeHash)) + code = fmt.Sprintf("%x", account.CodeHash) } root := "" if len(account.Root) > 0 { - root = fmt.Sprintf("%x", common.Bytes2Hex(account.Root)) + root = fmt.Sprintf("%x", account.Root) } content = fmt.Sprintf("nonce: %d, balance: %d, code: %s, root: %s", account.Nonce, account.Balance, code, root) }