trust-web3-provider
trust-web3-provider copied to clipboard
Test https://metamask.github.io/test-dapp/, open the web page can't show the information chain
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; })(); """
bc1q69x3pf0yr749t8xnlcxmek09gdg398ec6vl0wc
I think I'm currently encountering a similar problem, do you have any solutions?