From 312bdb6b392fd02fd92cb5fc259bcac3c4ff5cf7 Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 11 Jan 2023 12:29:03 -0500 Subject: [PATCH] sed s/crn/lrn/g --- README.md | 10 +++++----- src/cmds/cns-cmds/name-cmds/delete.ts | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d769c5c..303478e 100644 --- a/README.md +++ b/README.md @@ -324,13 +324,13 @@ $ laconic cns authority reserve kube.laconic --owner ethm1vc62ysqu504at932jjq8pw Set name: ```bash -$ laconic cns name set crn://laconic/watcher/erc20 bafyreic3auqajvgszh3vfjsouew2rsctswukc346dmlf273ln4g6iyyhba +$ laconic cns name set lrn://laconic/watcher/erc20 bafyreic3auqajvgszh3vfjsouew2rsctswukc346dmlf273ln4g6iyyhba ``` Lookup name information: ```bash -$ laconic cns name lookup crn://laconic/watcher/erc20 +$ laconic cns name lookup lrn://laconic/watcher/erc20 [ { "latest": { @@ -344,7 +344,7 @@ $ laconic cns name lookup crn://laconic/watcher/erc20 Resolve name: ```bash -$ laconic cns name resolve crn://laconic/watcher/erc20 +$ laconic cns name resolve lrn://laconic/watcher/erc20 [ { "id": "bafyreic3auqajvgszh3vfjsouew2rsctswukc346dmlf273ln4g6iyyhba", @@ -385,9 +385,9 @@ $ laconic cns name resolve crn://laconic/watcher/erc20 Delete name: ```bash -$ laconic cns name delete crn://laconic/watcher/erc20 +$ laconic cns name delete lrn://laconic/watcher/erc20 -$ laconic cns name resolve crn://laconic/watcher/erc20 +$ laconic cns name resolve lrn://laconic/watcher/erc20 [ null ] diff --git a/src/cmds/cns-cmds/name-cmds/delete.ts b/src/cmds/cns-cmds/name-cmds/delete.ts index e099def..d033af6 100644 --- a/src/cmds/cns-cmds/name-cmds/delete.ts +++ b/src/cmds/cns-cmds/name-cmds/delete.ts @@ -20,8 +20,13 @@ export const handler = async (argv: Arguments) => { assert(chainId, 'Invalid Registry Chain ID.'); const registry = new Registry(gqlEndpoint, restEndpoint, chainId); +<<<<<<< HEAD const fee = getGasAndFees(argv, cnsConfig); const result = await registry.deleteName({ crn: name }, privateKey, fee); +======= + const fee = getGasAndFees(argv, registryConfig); + const result = await registry.deleteName({ lrn: name }, privateKey, fee); +>>>>>>> 10b20d7 (sed s/crn/lrn/g) console.log(JSON.stringify(result, undefined, 2)); }