diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:18 +0800 |
commit | 73fd358d940418b15dec850f50407bd2e504d88c (patch) | |
tree | a1202689cf2e715fef9c31fa17ca4ad241de1d0f /ethdb/memory_database.go | |
parent | f247f0c518c6e848061462e3234f32cc7d854a46 (diff) | |
download | dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.gz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.bz2 dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.lz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.xz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.zst dexon-73fd358d940418b15dec850f50407bd2e504d88c.zip |
Removed RlpValue in favour of Value
Diffstat (limited to 'ethdb/memory_database.go')
-rw-r--r-- | ethdb/memory_database.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 656de9f0e..cd9f24000 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -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()) } } |