diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:35 +0800 |
commit | 3a03d091eb337ac2d5fdec50b49bf9ac5cda86f5 (patch) | |
tree | 0ccd889b7df0820bbfc83580c8ff4c37c4147661 | |
parent | fe59a2b26deb11705c524dc52dc78ce1e00eb713 (diff) | |
download | dexon-3a03d091eb337ac2d5fdec50b49bf9ac5cda86f5.tar.gz dexon-3a03d091eb337ac2d5fdec50b49bf9ac5cda86f5.tar.zst dexon-3a03d091eb337ac2d5fdec50b49bf9ac5cda86f5.zip |
Removed RlpValue in favour of Value
-rw-r--r-- | dev_console.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev_console.go b/dev_console.go index ff2539b03..f2283e341 100644 --- a/dev_console.go +++ b/dev_console.go @@ -79,9 +79,9 @@ func (i *Console) ValidateInput(action string, argumentLength int) error { } func (i *Console) PrintRoot() { - root := ethutil.Conv(i.trie.Root) - if len(root.AsBytes()) != 0 { - fmt.Println(hex.EncodeToString(root.AsBytes())) + root := ethutil.NewValue(i.trie.Root) + if len(root.Bytes()) != 0 { + fmt.Println(hex.EncodeToString(root.Bytes())) } else { fmt.Println(i.trie.Root) } @@ -127,7 +127,7 @@ func (i *Console) ParseInput(input string) bool { ethutil.BigPow(2, 36), // diff ethutil.Big(tokens[2]))) // nonce case "decode": - value := ethutil.NewRlpValueFromBytes([]byte(tokens[1])) + value := ethutil.NewValueFromBytes([]byte(tokens[1])) fmt.Println(value) case "getaddr": encoded, _ := hex.DecodeString(tokens[1]) @@ -162,7 +162,7 @@ func (i *Console) ParseInput(input string) bool { addr, _ := hex.DecodeString(tokens[1]) data, _ := ethutil.Config.Db.Get(addr) if len(data) != 0 { - decoder := ethutil.NewRlpValueFromBytes(data) + decoder := ethutil.NewValueFromBytes(data) fmt.Println(decoder) } else { fmt.Println("gettx: tx not found") |