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

BLUE-70: Fix issue in eth_getBalance and eth_getTransactionCount #23

Merged
merged 2 commits into from
May 10, 2024

Conversation

Glitch18
Copy link
Contributor

@Glitch18 Glitch18 commented May 8, 2024

https://linear.app/shm/issue/BLUE-70/rpc-bugs-in-eth-getbalance-and-eth-gettransactioncount

I came across two issues on the RPC level where for accounts that have not been initialized, calls eth_getTransactionCount and eth_getBalance fail on an nLDRPC.

Example with nLDRPC of a dev network:

$: curl -X POST -H "Content-Type: application/json" --data '{"method":"eth_getTransactionCount","params":["0xc8f59951039673bD22aCA3aCa16E42ebb61D5C16"],"id":1,"jsonrpc":"2.0"}' http://34.71.92.251:8090

{"jsonrpc":"2.0","id":1,"error":{"code":-32001,"message":"Unable to get transaction count"}}%

Adds a fix for both

Copy link

linear bot commented May 8, 2024

@jairajdev jairajdev merged commit 7c3d460 into dev May 10, 2024
2 checks passed
@jairajdev jairajdev deleted the atharva/fixNewAccountCalls branch May 10, 2024 15:23
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

Successfully merging this pull request may close these issues.

2 participants