state: fix txResult issue with UnmarshalBinary into ptr

This commit is contained in:
Ethan Buchman
2018-03-02 02:28:17 -05:00
parent 6596bff8ec
commit 656854186c

View File

@@ -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)
}