diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-31 06:50:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-31 06:50:15 +0800 |
commit | e28632b997b4097fb6f899067ead02b90d9b887b (patch) | |
tree | 5f551ab82f5e1721314cdaf019b90835906a1dec /dev_console.go | |
parent | 8f16b6650709b4b5c48bb4c473793b23be557bbc (diff) | |
download | dexon-e28632b997b4097fb6f899067ead02b90d9b887b.tar.gz dexon-e28632b997b4097fb6f899067ead02b90d9b887b.tar.zst dexon-e28632b997b4097fb6f899067ead02b90d9b887b.zip |
Mine?
Diffstat (limited to 'dev_console.go')
-rw-r--r-- | dev_console.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev_console.go b/dev_console.go index 106c372f2..39176eeba 100644 --- a/dev_console.go +++ b/dev_console.go @@ -124,8 +124,8 @@ func (i *Console) ParseInput(input string) bool { ethutil.BigPow(2, 36), // diff ethutil.Big(tokens[2]))) // nonce case "decode": - d, _ := ethutil.Decode([]byte(tokens[1]), 0) - fmt.Printf("%q\n", d) + value := ethutil.NewRlpDecoder([]byte(tokens[1])) + fmt.Println(value) case "getaddr": encoded, _ := hex.DecodeString(tokens[1]) d := i.ethereum.BlockManager.BlockChain().CurrentBlock.State().Get(string(encoded)) |