question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native app crash -> ethers.Wallet.createRandom({locale:'ko'})

See original GitHub issue

Hi

Thanks for making the library

I am developing a wallet and I want to use the mnemonic code in Korean, but it works well in debug mode, but when I exit the debug mode, the app is terminated.

its work ! const wallet = ethers.Wallet.createRandom({locale:'en'});

but its not working… const wallet = ethers.Wallet.createRandom({locale:'ko'});

What can I do to prevent the app from crashing?

Any help would be thanks.

English used Google Translate.

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
s-jain-cognamcommented, Jul 23, 2021

Hello again, this mnemonicToSeed which uses pbkdf2 and takes around 10 second to user access wallet when he have passwords for security perpose obviously. but when i create a wallet and connect it to provider. this function runs 3 time which increases time 10 to 30 seconds. why is that? couldn’t it converted to one time run from create wallet to connect to provider.

0reactions
ricmoocommented, May 14, 2022

The issue with the Korean (Hangul) wordlists is unfortunately not something that can be solved on Android with broken implementations of normalize. There is no safe way to even detect the issue, since try..catch cannot trap it; the browser simply crashes.

I’m closing this now, and hopefully the user base on platforms still using the broken String implementation on Android dwindles. This issue is over a year old, so maybe it already has. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native slow / freeze whet i call ethers.Wallet ...
I have test this in both IOS and Android and was able to create a HD Wallet instantly. To use bip39 in React...
Read more >
React Native App crash upon review… - Apple Developer
I've recently submitted twice a new app and got it refused twice as well because the app crashed in the hands of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found