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

Cannot do sendTransaction #4234

Closed
1 task done
kyimoemin opened this issue Sep 1, 2024 · 2 comments
Closed
1 task done

Cannot do sendTransaction #4234

kyimoemin opened this issue Sep 1, 2024 · 2 comments
Labels
Needs Reproduction Misc: Needs Reproduction

Comments

@kyimoemin
Copy link

kyimoemin commented Sep 1, 2024

Check existing issues

Describe the bug

I tried to do sendTransaction of useSendTransaction hook but it doesn't work with TrustWallet (it worked on Metamask).
I even tried in WalletConnect's sendTransaction doc's code sandbox and it has the same error.

error log

TransactionExecutionError: An internal error was received.

Request Arguments:
  chain:  undefined (id: 1)
  from:   0x6118E4f7ef51464a0a00fF278a6ab34DCF391cB1
  to:
  value:  0 ETH

Details: The data couldn’t be read because it is missing.
Version: 2.20.1
    at getTransactionError (chunk-CBR4E2JV.js?v=ae046d6b:1461:10)
    at sendTransaction (chunk-CBR4E2JV.js?v=ae046d6b:1573:11)
    at async sendTransaction2 (chunk-Y4DKP5N5.js?v=ae046d6b:2805:16)Caused by: InternalRpcError: An internal error was received.

Details: The data couldn’t be read because it is missing.
Version: 2.20.1
    at withRetry.delay.count.count (chunk-CBR4E2JV.js?v=ae046d6b:1975:19)
    at async attemptRetry (chunk-CBR4E2JV.js?v=ae046d6b:1940:22)
package version
viem ^2.20.1
wagmi ^2.12.7
@web3modal/wagmi ^5.1.3

Link to Minimal Reproducible Example

(https://github.com/kyimoemin/wc-playground)

Steps To Reproduce

do sendTransaction after wallet is connected with ETH mainnet.

What Wagmi package(s) are you using?

wagmi

Wagmi Package(s) Version(s)

wagmi"@2.12.7

Viem Version

viem@2.20.1

TypeScript Version

typescript@5.5.3

Anything else?

No response

@tmm tmm added the Needs Reproduction Misc: Needs Reproduction label Sep 1, 2024
Copy link
Contributor

github-actions bot commented Sep 1, 2024

Hello @kyimoemin.

Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.

Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster.

Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Reproduction Misc: Needs Reproduction
Projects
None yet
Development

No branches or pull requests

3 participants
@tmm @kyimoemin and others