diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-20 20:33:11 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-20 21:00:26 +0800 |
commit | c161d73d429ef421cdb9c75b743c16d72aa8a89a (patch) | |
tree | 266404447d1e2843b347e11892ff393aabd61a23 /common/rlp.go | |
parent | dcb9614dfec3c8dcaaa47e9fa516528fdc47279b (diff) | |
download | dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar.gz dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar.bz2 dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar.lz dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar.xz dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.tar.zst dexon-c161d73d429ef421cdb9c75b743c16d72aa8a89a.zip |
common: drop accessors for Value.Val
I don't see why we would need two different accessors for a public field.
Diffstat (limited to 'common/rlp.go')
-rw-r--r-- | common/rlp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rlp.go b/common/rlp.go index 602f13202..06ac410e9 100644 --- a/common/rlp.go +++ b/common/rlp.go @@ -112,7 +112,7 @@ func Encode(object interface{}) []byte { if object != nil { switch t := object.(type) { case *Value: - buff.Write(Encode(t.Raw())) + buff.Write(Encode(t.Val)) case RlpEncodable: buff.Write(Encode(t.RlpData())) // Code dup :-/ |