Use user key as transaction private key

This commit is contained in:
neeraj 2024-03-12 18:54:03 +05:30
parent c14a7dce56
commit 46fa64ab27

View File

@ -45,7 +45,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 result = await registry.setRecord({ privateKey: userKey, record, bondId }, txKey as string, fee); const result = await registry.setRecord({ privateKey: userKey, record, bondId }, txKey || userKey, fee);
txOutput(result, JSON.stringify(result, undefined, 2), argv.output, argv.verbose); txOutput(result, JSON.stringify(result, undefined, 2), argv.output, argv.verbose);
}; };