everx-labs / ever-sdk-js

Javascript SDK for TVM blockchains (Everscale, TON, Venom, etc)

Home Page:https://tonlabs.github.io/ever-sdk-js/

Repository from Github https://github.comeverx-labs/ever-sdk-jsRepository from Github https://github.comeverx-labs/ever-sdk-js

Call of `convertAddress` method with Cyrillic (also Chinese) symbols lead to a crash on mobile devices

savelichalex opened this issue · comments

Suppose following code:

Client.contracts.convertAddress({
  address: 'ылвоаиывлоиаыловиалоывиалоывиалоывиалоывиалоыиав', // Just a long random string with Cyrillic symbols
  convertTo: 'Hex', // Not sure if it only hex, but I tested with it
});

This call lead to a crash on mobile devices.

Right now I use a workaround, I just filter incoming address with a RegExp - /[^:0-9a-zA-Z\-_+/=]/ , but it would be great if the library did it, that could prevent a library users from unpredictable crashes.

Thank you, we will fix it in the upcoming releases