From 47a822fac3a3022c010a3db4ae8750e9e6105165 Mon Sep 17 00:00:00 2001 From: RafilxTenfen Date: Thu, 19 Dec 2024 13:12:28 -0300 Subject: [PATCH] fix: parse of tx resp auth data --- test/e2e/configurer/chain/queries.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/e2e/configurer/chain/queries.go b/test/e2e/configurer/chain/queries.go index 7cf8e221..d9046f58 100644 --- a/test/e2e/configurer/chain/queries.go +++ b/test/e2e/configurer/chain/queries.go @@ -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(), @@ -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 }