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