fixes to compile

This commit is contained in:
Ethan Buchman
2017-05-22 07:35:23 -04:00
parent 4503bb61f2
commit f4c5edaca3
4 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ type AccountPresenter struct{}
func (_ AccountPresenter) MakeKey(str string) ([]byte, error) {
res, err := hex.DecodeString(str)
if err == nil {
res = state.AccountKey(res)
res = btypes.AccountKey(res)
}
return res, err
}
+6 -1
View File
@@ -196,13 +196,18 @@ func ibcPacketCreateTxCmd(cmd *cobra.Command, args []string) error {
return err
}
var payload ibc.Payload
if err := wire.ReadBinaryBytes(payloadBytes, &payload); err != nil {
return err
}
ibcTx := ibc.IBCPacketCreateTx{
Packet: ibc.Packet{
SrcChainID: fromChain,
DstChainID: toChain,
Sequence: sequence,
Type: packetType,
Payload: payloadBytes,
Payload: payload,
},
}
+1 -2
View File
@@ -11,7 +11,6 @@ import (
abci "github.com/tendermint/abci/types"
wire "github.com/tendermint/go-wire"
"github.com/tendermint/basecoin/state"
"github.com/tendermint/basecoin/types"
client "github.com/tendermint/tendermint/rpc/client"
@@ -114,7 +113,7 @@ func Query(tmAddr string, key []byte) (*abci.ResultQuery, error) {
// fetch the account by querying the app
func getAcc(tmAddr string, address []byte) (*types.Account, error) {
key := state.AccountKey(address)
key := types.AccountKey(address)
response, err := Query(tmAddr, key)
if err != nil {
return nil, err