tm: update to latest (#7376)

* update to latest tm

* fix tests
This commit is contained in:
Marko
2020-09-23 13:44:40 +00:00
committed by GitHub
parent 95317d2fd6
commit 5ce15cb963
14 changed files with 39 additions and 27 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
package client
import (
"context"
"encoding/hex"
"errors"
"fmt"
@@ -43,7 +44,7 @@ func QueryTxsByEvents(clientCtx client.Context, events []string, page, limit int
// TODO: this may not always need to be proven
// https://github.com/cosmos/cosmos-sdk/issues/6807
resTxs, err := node.TxSearch(query, true, &page, &limit, orderBy)
resTxs, err := node.TxSearch(context.Background(), query, true, &page, &limit, orderBy)
if err != nil {
return nil, err
}
@@ -78,7 +79,7 @@ func QueryTx(clientCtx client.Context, hashHexStr string) (*sdk.TxResponse, erro
//TODO: this may not always need to be proven
// https://github.com/cosmos/cosmos-sdk/issues/6807
resTx, err := node.Tx(hash, true)
resTx, err := node.Tx(context.Background(), hash, true)
if err != nil {
return nil, err
}
@@ -120,7 +121,7 @@ func getBlocksForTxResults(clientCtx client.Context, resTxs []*ctypes.ResultTx)
for _, resTx := range resTxs {
if _, ok := resBlocks[resTx.Height]; !ok {
resBlock, err := node.Block(&resTx.Height)
resBlock, err := node.Block(context.Background(), &resTx.Height)
if err != nil {
return nil, err
}