From d107fdeddd6a4543a8b01173cf99ce0aa618a518 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 6 Mar 2023 11:39:01 +0100 Subject: [PATCH] Log Tendermint version in example --- packages/cli/examples/tendermint0.37.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/examples/tendermint0.37.ts b/packages/cli/examples/tendermint0.37.ts index 3035a3ce..65200a25 100644 --- a/packages/cli/examples/tendermint0.37.ts +++ b/packages/cli/examples/tendermint0.37.ts @@ -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