forked from simolus3/web3dart
-
Notifications
You must be signed in to change notification settings - Fork 96
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
int? chainId = 1, causing the sender to be always invalid sender #127
Comments
Thanks for reporting. I will investigate reverting a commit causing this bug. Meanwhile passing |
I don't think passing chain id =null fix the problem As chain Id will still return 1 therefor it won't be gotten from the network |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ERROR
Error RPCError: got code -32000 with msg "invalid sender".
Future sendTransaction(
Credentials cred,
Transaction transaction, {
int? chainId = 1,
bool fetchChainIdFromNetworkId = false,
})
Chain id is supposed to be fetch from the networkId or chainId method
But its always 1
FIX
Future sendTransaction(
Credentials cred,
Transaction transaction, {
int? chainId ,
bool fetchChainIdFromNetworkId = false,
})
Chain id is left as null here so it always fetch from network
Environment
Dart SDK version: 3.1.3 (stable)
The text was updated successfully, but these errors were encountered: