diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-01 16:21:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-01 16:21:43 +0800 |
commit | 5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b (patch) | |
tree | e973b3c2632d2d2a22d9c2949340f179faae152d /ethutil/value.go | |
parent | 5a2d62e4d9e551f16f094216da70b7a6f5d2bf00 (diff) | |
download | dexon-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.tar.gz dexon-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.tar.zst dexon-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.zip |
minor rlp things
Diffstat (limited to 'ethutil/value.go')
-rw-r--r-- | ethutil/value.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ethutil/value.go b/ethutil/value.go index 85dc44ed6..3128cd724 100644 --- a/ethutil/value.go +++ b/ethutil/value.go @@ -221,12 +221,15 @@ func (val *Value) Encode() []byte { func (self *Value) Decode() { v, _ := Decode(self.Bytes(), 0) self.Val = v + //self.Val = DecodeWithReader(bytes.NewBuffer(self.Bytes())) } func NewValueFromBytes(data []byte) *Value { if len(data) != 0 { - data, _ := Decode(data, 0) - return NewValue(data) + value := NewValue(data) + value.Decode() + + return value } return NewValue(nil) |