-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does etherjs V5 work in TrustWallet? #1025
Comments
I don't know of any reason it won't be compatible, but I haven't tested it myself. It works in node 8 and above, ES3 (ish) and above (for browsers) and with the included Do you get any errors? |
Thanks @ricmoo I'll have a look at shims. It's. Nuxtjs app so may need something extra as you say. TBH it's probably something I am doing but just seems odd why I can't get it working in TW but does in others. Will report back any findings I get. |
I actually got it working, it an ordering thing with the ssr client/server logic. 😄 I have found one thing which you may be able to help with. I am migrating a web3 dapp to nuxt and etherjs - one problem which has come up today is about message signing. Previous I used to use this from web3js: web3.eth.personal.sign(Web3.utils.toHex(`Hello world`), account) And I have migrated it to use this provider.getSigner().signMessage(`Hello world`); Provider being the unlocked in web3 account provider. Any ideas? |
I have actually got it working however made the rpc call manually like this: web3.provider.sendAsync({
method: 'personal_sign',
params: [ethers.utils.hexlify(ethers.utils.toUtf8Bytes(`Hello world`)), account]
}, (error, response) => {
if (error) {
return reject(error);
}
return resolve(response.result);
}) |
The JsonRpcSigner uses the I'll try it out and see if there is a way to detect that |
Hello, i'm also not able to connect within the trust wallet browser for dapps. Any news on this issue? |
This will be TransactionResponse ned in #1544. I'll close this issue, as that issue better covers the problem, and what I need form everyone to move forward with a solution. Thanks! :) |
Hi everyone, I have a little dapp thats using etherjs but I cant seem to get it working in TrustWallet?
I have no empirical evidence that the reason is
etherjs
V5 at all but I wondered if anyone has successfully used it with TrustWallet?The reason I ask is that after looking at TW github here - https://github.com/trustwallet/trust-web3-provider - It states that it comes bundled with
web3 0.20.x.
which is not only an ancient and deprecated lib, but may also not be compatable with ethers V5?Anyway, thanks for any help or answers.
The text was updated successfully, but these errors were encountered: