Skip to content

Commit

Permalink
(fix) Fix chain get tx example
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Sep 26, 2024
1 parent dcc5172 commit fd43148
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/chain/tx/query/1_GetTx/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit fd43148

Please sign in to comment.