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

Generate keys lets you generate keys for account ids already existing #837

Closed
H34D opened this issue Sep 10, 2021 · 0 comments
Closed

Generate keys lets you generate keys for account ids already existing #837

H34D opened this issue Sep 10, 2021 · 0 comments
Labels
bug Something isn't working T-dev-tools

Comments

@H34D
Copy link
Contributor

H34D commented Sep 10, 2021

Describe the bug
When i create keys for an account id that is already known to the network it will still create keys

To Reproduce

$ export NEAR_ENV=testnet
$ near generate-key acc.testnet
Key pair with ed25519:74CzZ61AY1W7jsUEMJRJYiZxK1jWkUfM43qD2fZid4mg public key for an account "acc.testnet"
$ near keys acc.testnet
Keys for account acc.testnet
[
{
access_key: 

{ nonce: 9, permission: 'FullAccess' } 

,
public_key: 'ed25519:9VSwjGM1Qx4yHTaVNGqkng994cTHnzVqZpS2MGPUegFs'
}
]

Expected behavior
A warning like on the wallet app:

Screenshot 2021-09-10 at 12 07 08

Desktop (please complete the following information):

  • OS: macos
  • Version 11.5.2
@H34D H34D added the bug Something isn't working label Sep 10, 2021
@gagdiez gagdiez closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working T-dev-tools
Projects
None yet
Development

No branches or pull requests

2 participants