Removed RlpValue in favour of Value

This commit is contained in:
obscuren
2014-02-15 01:34:18 +01:00
parent f247f0c518
commit 73fd358d94
8 changed files with 29 additions and 271 deletions

View File

@ -29,9 +29,8 @@ func (db *MemDatabase) Get(key []byte) ([]byte, error) {
func (db *MemDatabase) Print() {
for key, val := range db.db {
fmt.Printf("%x(%d): ", key, len(key))
dec, _ := ethutil.Decode(val, 0)
node := ethutil.Conv(dec)
fmt.Printf("%q\n", node.AsRaw())
node := ethutil.NewValueFromBytes(val)
fmt.Printf("%q\n", node.Interface())
}
}