You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a dapp, where users can send swap tx on one chain, and on the other chain, the user have to call the receiveMessage to proceed the swap
In my dapp, I specify signers of the same wallet for 2 different chains (I use hook from wagmi): Reference link
and modify it so it will have 2 providers corresponding to only 1 address
SwapSector.tsx:190 Failed to relay USDC: Error: could not coalesce error (error={ "code": -32601, "message": "the method eth_sendTransaction is not available" }, payload={ "id": 4, "jsonrpc": "2.0", "method": "eth_sendTransaction", "params": [ { "data": "0x57ecfd280000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000f8000000000000000100000000000000000004a293000000000000000000000000eb08f243e5d3fcff26a9e38ae5520a669f4019d00000000000000000000000009f3b8679c73c2fef8b59b4f3444d4e156fb70aa50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005425890298aed601595a70ab815c96711a31bc6500000000000000000000000097ec4e4beb78b15a170660056ef9d3d1998f0476000000000000000000000000000000000000000000000000000000000000ead4000000000000000000000000e59d41ebe7b0a5a684b1d6183e4c79163588af0200000000000000000000000000000000000000000000000000000000000000000000000000000082d2c1f7085cc0e47cbb554f0ed732a7c10e9eaf450636c5f914622e5172d95aff15f815b27f9da8ecad6a2db7df56a69d917817bcf6e9775f092d5e3fd56be7e51cb6595150aa35f79557f61d923ac6d4e185830e8ebb405fa7ccb7917119f256851447186015cdf2a1861b7c49279141ebcc5080cb728e2e0b97137d49ad1907dd1b000000000000000000000000000000000000000000000000000000000000", "from": "0x97d4c420a869f1e1591a0d6b2d2354232c805baa", "gas": "0x676b", "to": "0x7865fafc2db2093669d92c0f33aeef291086befd" } ] }, code=UNKNOWN_ERROR, version=6.12.1)
What is the problem, how can I execute the mint function (it worked normally if I initiate a new Wallet with the private key, connected to the destination provider.
But I don't want to have the private key here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to make a dapp, where users can send swap tx on one chain, and on the other chain, the user have to call the
receiveMessage
to proceed the swapIn my dapp, I specify signers of the same wallet for 2 different chains (I use hook from wagmi): Reference link
and modify it so it will have 2 providers corresponding to only 1 address
Here is my code
From there, I want to execute this function with both signers
However, this part never works
It outputs the error
What is the problem, how can I execute the mint function (it worked normally if I initiate a new Wallet with the private key, connected to the destination provider.
But I don't want to have the private key here.
Beta Was this translation helpful? Give feedback.
All reactions