Skip to content

Commit

Permalink
fix: parse of tx resp auth data
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Dec 19, 2024
1 parent 4e23a91 commit 47a822f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/e2e/configurer/chain/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func (n *NodeConfig) QueryAppliedPlan(planName string) upgradetypes.QueryApplied
return resp
}

func (n *NodeConfig) QueryTx(txHash string, overallFlags ...string) (sdk.TxResponse, sdktx.Tx) {
func (n *NodeConfig) QueryTx(txHash string, overallFlags ...string) (sdk.TxResponse, *sdktx.Tx) {
cmd := []string{
"babylond", "q", "tx", "--type=hash", txHash, "--output=json",
n.FlagChainID(),
Expand All @@ -426,10 +426,7 @@ func (n *NodeConfig) QueryTx(txHash string, overallFlags ...string) (sdk.TxRespo
err = util.Cdc.UnmarshalJSON(out.Bytes(), &txResp)
require.NoError(n.t, err)

var txAuth sdktx.Tx
err = util.Cdc.UnpackAny(txResp.Tx, &txAuth)
require.NoError(n.t, err)

txAuth := txResp.Tx.GetCachedValue().(*sdktx.Tx)
return txResp, txAuth
}

Expand Down

0 comments on commit 47a822f

Please sign in to comment.