This commit is contained in:
obscuren
2014-01-30 23:50:15 +01:00
parent 8f16b66507
commit e28632b997
2 changed files with 28 additions and 20 deletions

View File

@ -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))