-
Notifications
You must be signed in to change notification settings - Fork 3
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
Value not in range: 32 #2
Comments
hi @kaumudpa usually this error happens when the address you are calling is not a smart contract, are you sure you are calling the correct smart contract address at the right chain? |
Issue persists across plugins - Please check this thread for more details xclud/web3dart#46 Again, any help will be appericiated. |
@kaumudpa can you please provide the code example which doesn't work for you? An Ethereum node can return 0x0 due to different reasons |
@makinghappen I have explained this in the other plugin's issue - Try fetching balance of a token via webthree. Interstingly If we use direct RPC client - things work just fine. Injected Metamask as a custom client throws this issue. With the help of alchemy explorer i found the following- While using Alchemy API as Direct RPC Client the request to alchemy is Response While using injected metamask as custom client for the same request. Response For some reason with custom client the request doesn't send the right params as you might have observed and hence we get just 0x as response and that's the reason webthree throws RangeError: Value not in range: 32 |
@kaumudpa how are you connecting metamask as a custom client, via package:webthree/browser.dart ? |
Yes!
…On Sun, 12 Mar 2023 at 3:48 AM, makinghappen ***@***.***> wrote:
@kaumudpa <https://github.com/kaumudpa> how are you connecting metamask
as a custom client, via package:webthree/browser.dart ?
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHE2NAUPHENP6C4BQVKFNDW3T22DANCNFSM6AAAAAAVNNUDVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@kaumudpa can you share your code? |
@makinghappen Check this
|
@kaumudpa you said you are trying to check balance, can you please share your full example code which fails? |
Here is the full example code to check token balance which fails
|
@kaumudpa I have the same problem may be anybody found solution for it |
@nemoRevers @kaumudpa are you sure the contract exists on the chain you are calling it? |
Hi,
Please check this issue simolus3/web3dart#59 , This issue is observed in webthree aswell.
Any help or light on its resolution will be appriciated.
The text was updated successfully, but these errors were encountered: