Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to re-register an account that has already been registered causes an error. #193

Open
2 tasks
johnnymatthews opened this issue Jul 18, 2024 · 0 comments

Comments

@johnnymatthews
Copy link
Contributor

This is fairly obvious, but if you attempt to register an account that has previously been registered, you get an error, and are kicked out of the CLI:

2024-07-18 14:46:21        REGISTRY: Unknown signed extensions ValidateConfirmRegistered found, treating them as no-effect
2024-07-18 14:46:21        API/INIT: RPC methods not decorated: chainSpec_v1_chainName, chainSpec_v1_genesisHash, chainSpec_v1_properties
Attempting to register the address: 5DSUAf2DwxW2ebZq15Pm6Z3SJ69Ur8fGd8ytWvgxvNjYtr7c
undefined:1


SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at get (file:///home/io/.local/share/pnpm/global/5/.pnpm/@entropyxyz+cli@0.0.3/node_modules/@entropyxyz/cli/dist/cli.js:176:15)
    at async EventEmitter.<anonymous> (file:///home/io/.local/share/pnpm/global/5/.pnpm/@entropyxyz+cli@0.0.3/node_modules/@entropyxyz/cli/dist/cli.js:401:23)

Node.js v22.3.0

Tasks

  • Catch the error before the user is thrown out of the CLI.
  • Tell the user that you can't register an account more than once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant