Merge pull request #30 from cerc-io/murali/bond

get bond id
This commit is contained in:
Zach 2023-03-15 21:26:47 -04:00 committed by GitHub
commit 64a796c421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}