Browse Source

state: fix txResult issue with UnmarshalBinary into ptr

pull/1265/head
Ethan Buchman 7 years ago
parent
commit
656854186c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      state/txindex/kv/kv.go

+ 1
- 1
state/txindex/kv/kv.go 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)
}


Loading…
Cancel
Save