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

Import by private key is not working #243

Closed
lefuncq opened this issue Oct 16, 2021 · 4 comments
Closed

Import by private key is not working #243

lefuncq opened this issue Oct 16, 2021 · 4 comments

Comments

@lefuncq
Copy link

lefuncq commented Oct 16, 2021

Hey,

So everything seems to work fine on my side except regarding the import by private key feature.

When I declare my env variable with SECRET_WORDS everything works fine but when I try to use PRIVATE_KEY instead the setup goes to seed phrase page of metamask anyway and gets stuck here since my SECRET_WORDS env variable isn't set.

I tried running by setting both SECRET_WORDS and PRIVATE_KEY but it doesn't seem to import my account and sticks with the first address...
I also tried to call cy.importMetamaskAccount but the function is not recognized and here is the output

"before all" hook for "Connects with metamask wallet":
     TypeError: cy.importMetamaskAccount is not a function

@drptbl
Copy link
Member

drptbl commented Oct 16, 2021

Hey,

Can you tell me the exact vesion of synpress that you use?

Thanks,
Jakub.

@lefuncq
Copy link
Author

lefuncq commented Oct 16, 2021

Hey here it is !

 "devDependencies": {
    "@synthetixio/synpress": "^0.9.14",

@drptbl
Copy link
Member

drptbl commented Oct 16, 2021

@NameItNow Thanks for letting me know. You're using wrong version. Importing an account with private key has not been released as stable release yet.

Try to bump your synpress version to 0.9.25-beta.17 and please try again. Let me know if it works, so that we can close this issue.

Thanks,
Jakub.

@lefuncq
Copy link
Author

lefuncq commented Oct 18, 2021

Ok thank you !

@lefuncq lefuncq closed this as completed Oct 18, 2021
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