io: rename ReadBytes() to ReadVarBytes()
This commit is contained in:
parent
f01fc1cc29
commit
838050f8b5
14 changed files with 22 additions and 22 deletions
|
@ -102,14 +102,14 @@ func DecodeBinaryStackItem(r *io.BinReader) StackItem {
|
|||
|
||||
switch stackItemType(t) {
|
||||
case byteArrayT:
|
||||
data := r.ReadBytes()
|
||||
data := r.ReadVarBytes()
|
||||
return NewByteArrayItem(data)
|
||||
case booleanT:
|
||||
var b bool
|
||||
r.ReadLE(&b)
|
||||
return NewBoolItem(b)
|
||||
case integerT:
|
||||
data := r.ReadBytes()
|
||||
data := r.ReadVarBytes()
|
||||
num := new(big.Int).SetBytes(util.ArrayReverse(data))
|
||||
return &BigIntegerItem{
|
||||
value: num,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue