[bug] Wallet connect signer doesn't support signTransaction
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Package Version
^0.5.9
Current Behavior
const provider = await connector.getProvider();
const signer = await connector.getSigner();
// this way to sign doesn't work at all, just returns 'UNSUPPORTED_OPERATION' or something like this
const s = await signer.signTransaction({
to: addr,
from: userAddress,
gasLimit: gasLimit,
data: swapDescription,
});
// This one sends notification to my mobile, but doesn't work too for another reason (screenshot below)
const r = await provider.request({
method: 'eth_signTransaction',
params: {
to: addr,
from: userAddress,
gas: gasLimit,
data: swapDescription,
gasPrice: '0x9999'
},
});
Expected Behavior
signTransaction for wallet connect should work fine (example apps: 1inch, it has WC integration and it is possible to send tx via flashbots)
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Adding mobile signing support to your dApp
Introduction to adding mobile wallet signing support to your dApp. WalletConnect protocol will be added to the Algorand Wallet shortly.
Read more >gnosis safe - error "transaction which cannot be processed" ...
When app is using metamask on wallet-connect with other wallets than gnosis, transaction can be signed and everything is ok. When i am...
Read more >Sign and verifiy message on ethereum using wallet ...
Show activity on this post. I am trying to sign and verify messages using wallet connect for my DAPP. So far I have...
Read more >Understanding and resolving MetaMask error codes
Because the MetaMask documentation does not have a comprehensive and ... This error is returned for the methods that aren't supported on ...
Read more >@algo-builder/web
You can connect to web package in your react app by using different wallets. Currently supported wallets include: AlgoSigner: Create an instance of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @cattingcat,
Sorry I only just got the time to have a look into this. For now, you may have to try hook into the
WalletConnectProvider
instance on the Wallet Connect connector.Example:
I tested this, and it works for me.
Yep, it works thanks 😃 Just in case if somebody will have the same issue as here: all tx values even gas should be in HEX format (I spent some time debugging issue with it)
Also Is it possible to migrate to signTransaction function sometime?