From 46fa64ab27413af895470198a03b26d87262bac3 Mon Sep 17 00:00:00 2001 From: neeraj Date: Tue, 12 Mar 2024 18:54:03 +0530 Subject: [PATCH] Use user key as transaction private key --- src/cmds/cns-cmds/record-cmds/publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds/cns-cmds/record-cmds/publish.ts b/src/cmds/cns-cmds/record-cmds/publish.ts index e9fcc3b..9a0e612 100644 --- a/src/cmds/cns-cmds/record-cmds/publish.ts +++ b/src/cmds/cns-cmds/record-cmds/publish.ts @@ -45,7 +45,7 @@ export const handler = async (argv: Arguments) => { const registry = new Registry(gqlEndpoint, restEndpoint, chainId); 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); };