near / near-cli

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

Can't create subaccount with known seed phrase #1096

Closed mikedotexe closed 4 months ago

mikedotexe commented 5 months ago

Describe the bug I'd like to make wc.mike.near because I need to test WalletConnect on a few mobile apps and don't want to give my seed phrase for mike.near. I have downloaded NEAR Mobile, and it's asking me for a seed phrase.

To Reproduce Try creating a subaccount with a seed phrase you've chosen

Expected behavior We used to be able to specify the seed phrase for a new subaccount using NEAR CLI

VlodkoMr commented 4 months ago

The same issue with near-cli call. Example:

 ACCOUNT_ID=test-dao.near
 CONTRACT=v1.test-dao.near
 NEAR_ENV=mainnet near create-account "$CONTRACT" --masterAccount "$ACCOUNT_ID" --initialBalance 5

Account test-dao.near exists on mainnet and funded, also loginned in cli.

But I get error: TypedError: Can't complete the action because account v1.test-dao.near doesn't exist

gagdiez commented 4 months ago

@VlodkoMr

NEAR_ENV=mainnet yarn start create-account "$contract" --useAccount "$account_id" --initialBalance 0.2 worked perfectly for me on MacOS, which environment are you using?

gagdiez commented 4 months ago

@mikedotexe this is back in version 4.0.8

gagdiez commented 4 months ago

@VlodkoMr your error was also reported in #1106 and fixed by #1108