Skip to content

Commit

Permalink
Log Tendermint version in example
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Mar 6, 2023
1 parent 1131581 commit d107fde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/examples/tendermint0.37.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ console.log("Signer address:", account.address);
// Setup client. In contrast to most other examples out there, we create the Tendermint client
// explicitly. Otherwise the 0.34 client will be used.
const tmClient = await Tendermint37Client.connect(rpcEndpoint);
const version = (await tmClient.status()).nodeInfo.version;
console.log("Tendermint version:", version);
const client = await SigningStargateClient.createWithSigner(tmClient, wallet, { gasPrice: gasPrice });

// Get my balance
Expand Down

0 comments on commit d107fde

Please sign in to comment.