Skip to content
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

Bug: requesting eth_sendTransaction failed with 4200: Unable to complete action #223

Open
runjuu opened this issue Jun 2, 2023 · 0 comments
Labels
state: backlog type: bug Something isn't working

Comments

@runjuu
Copy link

runjuu commented Jun 2, 2023

Describe the bug

I'm using SampleClient to initiate a transaction. After confirming the request in the Coinbase Wallet app and redirecting back to SampleClient, the log shows that the action has failed with error 4200: Unable to complete action.

Steps

  1. Select Coinbase Wallet in the SampleClient app.
  2. Click Initiate handshake and confirm in Coinbase Wallet.
  3. Click Make request and confirm in Coinbase Wallet.

I've made the following changes to makeRequest to send an eth_sendTransaction request:

mwpClient.makeRequest(
-  Request(actions: [
-    Action(jsonRpc: .personal_sign(address: address, message: "message")),
-    Action(jsonRpc: .eth_signTypedData_v3(
-      address: address,
-      typedDataJson: JSONString(encode: typedData)!
-    ))
-  ])
+  Request(actions: [
+    Action(jsonRpc: .eth_sendTransaction(
+      fromAddress: address,
+      toAddress: "0x000000000000000000000000000000000000dEaD",
+      weiValue: "10000000000000",
+      data: "0x",
+      nonce: 1,
+      gasPriceInWei: "30000000000",
+      maxFeePerGas: "60000000000",
+      maxPriorityFeePerGas: "2500000000",
+      gasLimit: "1000",
+      chainId: "1"
+    ))
+  ])
) { result in

Expected behavior

Successfully sent transaction

Version

1.0.4

Additional info

No response

Desktop

No response

Smartphone

  • iOS 16.6
  • Coinbase Wallet 28.44.0
@runjuu runjuu added the type: bug Something isn't working label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: backlog type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@bangtoven @runjuu and others