From 3258e4cfe330d9abe3c60cd3d43684657cd99f73 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 7 Mar 2023 16:27:53 +0530 Subject: [PATCH] get bond id --- src/cmds/cns-cmds/bond-cmds/create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmds/cns-cmds/bond-cmds/create.ts b/src/cmds/cns-cmds/bond-cmds/create.ts index 8479446..9e3a79d 100644 --- a/src/cmds/cns-cmds/bond-cmds/create.ts +++ b/src/cmds/cns-cmds/bond-cmds/create.ts @@ -34,6 +34,7 @@ export const handler = async (argv: Arguments) => { const registry = new Registry(gqlEndpoint, restEndpoint, chainId); const fee = getGasAndFees(argv, cnsConfig); + const bondId = await registry.getNextBondId(privateKey); const result = await registry.createBond({ denom, amount }, privateKey, fee); - console.log(verbose ? JSON.stringify(result, undefined, 2) : result.data); + console.log(true ? JSON.stringify(result, undefined, 2)+"\nBondId:"+bondId : bondId); }