get bond id #30

Merged
0xmuralik merged 1 commits from murali/bond into main 2023-03-16 01:26:48 +00:00

View File

@ -34,6 +34,7 @@ export const handler = async (argv: Arguments) => {
const registry = new Registry(gqlEndpoint, restEndpoint, chainId); const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig); const fee = getGasAndFees(argv, cnsConfig);
const bondId = await registry.getNextBondId(privateKey);
const result = await registry.createBond({ denom, amount }, privateKey, fee); 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);
} }