near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
196 stars 94 forks source link

dev-deploy return error `Account undefined is not found in testnet` #1086

Closed lqueiroga closed 9 months ago

lqueiroga commented 9 months ago

Describe the bug When running near dev-deploy --wasmFile I get the message Account undefined is not found in testnet

Dev account is not in testnet and when trying to delete near dev account I get this error: Error: Can not sign transactions for account dev-1707339621480-58407081000882 on network testnet, no matching key pair found in InMemorySigner(MergeKeyStore(UnencryptedFileSystemKeyStore(/home/developer/.near-credentials), UnencryptedFileSystemKeyStore(/home/developer/WKS/platform/near/startup-registry-contract/neardev))).

To Reproduce Steps to reproduce the behavior:

  1. run command near dev-deploy --wasmFile <wasm_file>
  2. See error

Terminal

> near dev-deploy --wasmFile ./target/wasm32-unknown-unknown/release/mytest.wasm

Account undefined is not found in testnet

Desktop (please complete the following information):

gagdiez commented 9 months ago

the error was happening because it is no longer possible to create top level accounts (TLA). dev-deploy was creating accounts in the form dev-X-Y, which were TLA. With the latest protocol update (1.37), only sub-accounts of a domain can be created (e.g. .testnet, .mainnet, .sweat).

I have released a new version of near-cli which allows to easily imitate the work of dev-deploy, you just need to run:

lqueiroga commented 9 months ago

Nice thanks for the update