Skip to content

Commit

Permalink
Fix deserializing elements value in tx
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan committed Jul 3, 2020
1 parent 80d64e4 commit bec1003
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/bufferutil/deserializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ func (d *Deserializer) ReadElementsValue() ([]byte, error) {
return nil, err
}

// special case: if issuance token amount is not defined it's encoded as 0x00
if version == 0 {
return []byte{version}, nil
}

buf := []byte{version}
nextBytes := []byte{}
if version == 1 {
Expand Down

0 comments on commit bec1003

Please sign in to comment.