state: fix txResult issue with UnmarshalBinary into ptr
This commit is contained in:
parent
6596bff8ec
commit
656854186c
|
@ -68,7 +68,7 @@ func (txi *TxIndex) Get(hash []byte) (*types.TxResult, error) {
|
|||
}
|
||||
|
||||
txResult := new(types.TxResult)
|
||||
err := wire.UnmarshalBinary(rawBytes, txResult)
|
||||
err := wire.UnmarshalBinary(rawBytes, &txResult)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Error reading TxResult: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue