trustwallet / trust-web3-provider

Web3 javascript wrapper provider for iOS and Android platforms.
https://trustwallet.com
725 stars 412 forks source link

Test https://metamask.github.io/test-dapp/, open the web page can't show the information chain #468

Open X-Herman opened 8 months ago

X-Herman commented 8 months ago

I take https://metamask.github.io/test-dapp/ test, using the webview in android open the web page can't show the information chain,This is the js code I injected,When the page is loaded, the link information is not displayed. This situation will cause the connected wallet to be normal, and other functions can not be invoked (function() { var config = { ethereum: { chainId: $chainId, rpcUrl: "$rpcUrl" }, solana: { cluster: "mainnet-beta", }, isDebug: true }; trustwallet.ethereum = new trustwallet.Provider(config); trustwallet.solana = new trustwallet.SolanaProvider(config); trustwallet.postMessage = (json) => { window._tw_.postMessage(JSON.stringify(json)); } window.ethereum = trustwallet.ethereum; })(); """

ThongchaiDonWanon commented 8 months ago

bc1q69x3pf0yr749t8xnlcxmek09gdg398ec6vl0wc

breadfruit-tree commented 8 months ago

I think I'm currently encountering a similar problem, do you have any solutions?