-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
encrypt wallet with Mnemonic Spanish language #685
Comments
I have a feeling this may be a bug, but I'll need to investigate. Your code looks correct to me. I'll investigate tomorrow as today has been 10 hours of writing documentation and my brain is mushy. :) |
I've confirmed this is an issue in v4 and v5. I am trying to figure out a backwards-compatible fix that is safe. Since v5 is not officially released yet, backwards compatibility isn't as important, so I may fix it there first to try out a few ideas. I'll keep this ticket updated and sorry for the inconvenience. |
Ok, Thank you! |
Hi any news? Can I help you with something, a PR? just give me explain me where to touch I'll do it. |
Hiya! Sorry for the delay. There is not a clean way to solve it in v4 without breaking backwards compatibility, but there is a way I can fix it that is a bit cumbersome to use, but will work. I'll put that into v4 and solve it more completely in v5. Are you using v4 or v5? |
Hi, |
I was hoping to have a stable release this month, but it is looking like it will likely be next month... |
Hi, |
Yeah, I will probably put the non-ideal fix in for v4. In v5 I've already abstracted the mnemonic out so it will work better. I just haven't put the mnemonic locale into the x-ethers extension for JSON wallets yet. Sorry for the delay, I'll get something for you soon. It may be some code you can cut and paste, but it will be something. :) |
great! thank you very much!! :) I'll wait :) |
So, a few options... First of all, v5 fully supports locales in the For v4, I've made a few changes that should "help", but it is not an ideal solution and may not cover all the cases you need. I don't know how much better this can get though, without introducing fairly intrusive changes to the API. Let me know what you think. First, the mnemonic (if non-English), will need the wordlist passed into the call to However, when decrypting the wallet in v4, if the language is non-English, the mnemonic will not be included in the Wallet object. Again, in v5 everything will work fine (regardless of whether the JSON was generated in v4 or v5). Here is an example:
The tests are running right now, and I'll publish them once they pass and update this issue. |
This has been published to |
Thanks! I just tried on 4.0.45 and works good :) thank you very much for your work! |
You will close the issue, right? |
Yupp! Glad it worked. Let me know if there is any problem. Thanks! :) |
Hi @ricmoo
If I turn it to English, everything works ok. So, something in the new process is not working correctly on RN. Below is the error I get on RN:
Any idea what could be? or something I could try? Regards, |
I have no idea what that error means. Maybe there is more info in the react documentation? Also, where are you getting the Let me know. :) |
Hi there can anybody help me to solve this issue i have been running into since i have run it many times it does not work i even try change the language to English it still doesn't work any help you can render for me for me let passPhrase = new Mnemonic(Mnemonic.Words.ENGLISH); TypeError: Cannot read properties of undefined (reading 'ENGLISH') Node.js v19.5.0 |
@reallife01 What are you trying to do? There is no property Mnemonic.Words. And nothing called |
Thanks so much for your concerns I have already fixed the issues I have
gotten the wallet and private generated thank you once again
…On Wed, 10 May 2023 at 2:15 PM, Richard Moore ***@***.***> wrote:
@reallife01 <https://github.com/reallife01> What are you trying to do?
There is no property Mnemonic.Words. And nothing called ENGLISH. If you
are trying to access the English word list, it is ethers.wordlists.en.
Everything in ethers uses the ISO names.
—
Reply to this email directly, view it on GitHub
<#685 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5DI2JTTSMK74QJMKL5GVIDXFOIITANCNFSM4JZVS2GQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi,
I'm trying to encrypt a wallet created with Mnemonic in Spanish and I get some errors. The strange thing is that if I do it in English works perfect.
First I have tried the following code:
And I get the following error:
The second code I have tried is:
and I get the following error:
What I'm doing wrong???
Thanks in advance :)
The text was updated successfully, but these errors were encountered: