tronprotocol / tronwallet-adapter

MIT License
65 stars 29 forks source link

OKX deeplink should use encodeURIComponent #47

Closed alienzhangyw closed 8 months ago

alienzhangyw commented 10 months ago

See OKX docs here https://www.okx.com/cn/web3/build/docs/sdks/app-universal-link#%E6%AD%A5%E9%AA%A4-2%EF%BC%9A%E7%BC%96%E7%A0%81-deeplink-%E5%8F%82%E6%95%B0

const encodedDappUrl = encodeURIComponent(dappUrl);
const deepLink = "okx://wallet/dapp/url?dappUrl=" + encodedDappUrl;

In currenet version of OKX adapter, if these is any special character (%, +, etc) in dapp url, the link opened in OKX app's browser will be wrong.

way2ex commented 10 months ago

Thanks a lot for your remind. We will update the package soon.

way2ex commented 8 months ago

Hi, v1.0.3 has been released. Please update the package version and check the deeplink functionality.

alienzhangyw commented 8 months ago

Hi, v1.0.3 has been released. Please update the package version and check the deeplink functionality.

Thanks, although we are not using this with OKX wallet now.