aboutsummaryrefslogtreecommitdiffstats
path: root/rlp.go
diff options
context:
space:
mode:
Diffstat (limited to 'rlp.go')
-rw-r--r--rlp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rlp.go b/rlp.go
index 2ea8ff094..2c04317ae 100644
--- a/rlp.go
+++ b/rlp.go
@@ -45,7 +45,7 @@ func Decode(data []byte, pos int) (interface{}, int) {
slice := make([]interface{}, 0)
switch {
case char < 24:
- return append(slice, data[pos]), pos + 1
+ return data[pos], pos + 1
case char < 56:
b := int(data[pos]) - 23
return FromBin(data[pos+1 : pos+1+b]), pos + 1 + b
@@ -72,7 +72,7 @@ func Decode(data []byte, pos int) (interface{}, int) {
return slice, pos
case char < 192:
b := int(data[pos]) - 183
- //b2 := int(FromBin(data[pos+1 : pos+1+b])) (ref imprementation has an unused variable)
+ //b2 := int(FromBin(data[pos+1 : pos+1+b])) (ref implementation has an unused variable)
pos = pos+1+b
for i := 0; i < b; i++ {
var obj interface{}