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

Account does not have public and private key information #178

Open
cppfuns opened this issue Aug 8, 2019 · 1 comment
Open

Account does not have public and private key information #178

cppfuns opened this issue Aug 8, 2019 · 1 comment

Comments

@cppfuns
Copy link

cppfuns commented Aug 8, 2019

When creating an existing account through new_account, it will go restored,
But at this time, the account object is returned, there is no public or private key information.

// eosio.token has been created before
eosio_token = new_account(eosio, "eosio.token")
INFO(eosio_token .active()) // Output empty information

if is_in_globals(account_object_name, globals):

if is_in_globals(account_object_name, globals):
       logger.INFO('''
           ######## Account object ``{}`` restored from the blockchain.
           '''.format(account_object_name)) 
       return globals[account_object_name]       

I think it is the information that I lost my account when I resumed. I hope I can recover it all.

@stefanzarembinski
Copy link
Contributor

It will be corrected soon. Still, you have the keys in the wallet, so you can recover keys. But the principle of EOSFactory is that it keeps the user out of the wallet operations. Therefore, after the accounts are restored, their keys are in the wallet and therefore the accounts can be used in transactions.

In fact, accounts are restored basing on the keys stored in active wallets.

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

2 participants