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

int? chainId = 1, causing the sender to be always invalid sender #127

Open
venbrinoDev opened this issue Oct 18, 2023 · 2 comments
Open

Comments

@venbrinoDev
Copy link

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)

@xclud
Copy link
Owner

xclud commented Oct 18, 2023

Thanks for reporting. I will investigate reverting a commit causing this bug. Meanwhile passing chainId: null will fix your problem.

@venbrinoDev
Copy link
Author

venbrinoDev commented Oct 18, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants