transaction: properly print number in attribute log msg
This commit is contained in:
parent
c093f070d3
commit
2ef2c0b84c
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func (attr *Attribute) DecodeBinary(r io.Reader) error {
|
||||||
Remark12, Remark13, Remark14, Remark15:
|
Remark12, Remark13, Remark14, Remark15:
|
||||||
datasize = br.ReadVarUint()
|
datasize = br.ReadVarUint()
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("failed decoding TX attribute usage: 0x%2x", attr.Usage)
|
return fmt.Errorf("failed decoding TX attribute usage: 0x%2x", int(attr.Usage))
|
||||||
}
|
}
|
||||||
attr.Data = make([]byte, datasize)
|
attr.Data = make([]byte, datasize)
|
||||||
br.ReadLE(attr.Data)
|
br.ReadLE(attr.Data)
|
||||||
|
|
Loading…
Reference in a new issue