From fa9e2839a3384341e0954890102d4767567f9d37 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Thu, 26 Sep 2024 19:17:35 +0200 Subject: [PATCH] (fix) Fix chain get tx example --- examples/chain/tx/query/1_GetTx/example.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/chain/tx/query/1_GetTx/example.go b/examples/chain/tx/query/1_GetTx/example.go index c41869e8..06b5e950 100644 --- a/examples/chain/tx/query/1_GetTx/example.go +++ b/examples/chain/tx/query/1_GetTx/example.go @@ -15,8 +15,7 @@ import ( ) func main() { - // network := common.LoadNetwork("mainnet", "k8s") - network := common.LoadNetwork("mainnet", "lb") + network := common.LoadNetwork("testnet", "lb") tmRPC, err := rpchttp.New(network.TmEndpoint, "/websocket") if err != nil { @@ -64,7 +63,7 @@ func main() { timeOutCtx, cancelFn := context.WithTimeout(ctx, 30*time.Second) defer cancelFn() - resp, err := chainClient.GetTx(timeOutCtx, "A2B2B971C690AE7977451D24D6F450AECE6BCCB271E91E32C2563342DDA5254B") + resp, err := chainClient.GetTx(timeOutCtx, "4446C993253F02F1ECF563477C48611859A36615C05262C2C74826E795BBF586") if err != nil { panic(err) }