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

Deployless calls are disabled #4258

Closed
1 task done
Rubilmax opened this issue Sep 10, 2024 · 1 comment · Fixed by #4260
Closed
1 task done

Deployless calls are disabled #4258

Rubilmax opened this issue Sep 10, 2024 · 1 comment · Fixed by #4260

Comments

@Rubilmax
Copy link

Rubilmax commented Sep 10, 2024

Check existing issues

Describe the bug

The following piece of code:

useReadContract({
  abi: parseAbi(['function name() view returns (string)']),
  code: '0x...', // Accessible here: https://etherscan.io/address/0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2#code
  functionName: 'name',
})

does not trigger any call because the query is disabled at this line because no address is provided. What is the reason for this?

Link to Minimal Reproducible Example

https://stackblitz.com/edit/new-wagmi-d5fk5x?file=src%2FApp.tsx

Steps To Reproduce

No response

What Wagmi package(s) are you using?

wagmi

Wagmi Package(s) Version(s)

2.12.9

Viem Version

2.21.4

TypeScript Version

5.4.5

Anything else?

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 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant