snet-cli icon indicating copy to clipboard operation
snet-cli copied to clipboard

"snet organization print-metadata" requires organization name despite there is no such entity in Registry contract anymore

Open vsbogd opened this issue 5 years ago • 2 comments

# snet organization print-metadata snet
error: the following arguments are required: org_id

usage: snet organization print-metadata [-h] org_name org_id

positional arguments:
  org_name    Organization name
  org_id      Organization Id

optional arguments:
  -h, --help  show this help message and exit

vsbogd avatar Nov 07 '19 09:11 vsbogd

The org_name is a field of the organization_metadata.json but it's really not necessary to get the metadata.

Users can get the organization's metadata using anything on org_name argument:

$ snet organization print-metadata not-a-name snet

So we just need to remove this argument.

arturgontijo avatar Nov 07 '19 13:11 arturgontijo

Looks like orgName in contract was replaced by metadataURI and since that some snet-cli functionality requires modification. See https://github.com/singnet/snet-cli/issues/348 as well.

vsbogd avatar Nov 07 '19 14:11 vsbogd