types: builds

This commit is contained in:
Ethan Buchman
2018-02-15 14:26:49 -05:00
parent d2cd079541
commit 3395f5fb0e
13 changed files with 30 additions and 30 deletions

View File

@@ -2,7 +2,7 @@ package types
import (
abci "github.com/tendermint/abci/types"
wire "github.com/tendermint/go-wire"
wire "github.com/tendermint/tendermint/wire"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/merkle"
)
@@ -18,7 +18,7 @@ type ABCIResult struct {
// Hash returns the canonical hash of the ABCIResult
func (a ABCIResult) Hash() []byte {
return merkle.SimpleHashFromBinary(a)
return tmHash(a)
}
// ABCIResults wraps the deliver tx results to return a proof
@@ -40,7 +40,7 @@ func NewResultFromResponse(response *abci.ResponseDeliverTx) ABCIResult {
}
}
// Bytes serializes the ABCIResponse using go-wire
// Bytes serializes the ABCIResponse using wire
func (a ABCIResults) Bytes() []byte {
bz, err := wire.MarshalBinary(a)
if err != nil {