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

Populate block number #3265

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Populate block number #3265

merged 2 commits into from
Oct 18, 2021

Conversation

andrepimenta
Copy link
Member

@andrepimenta andrepimenta commented Oct 6, 2021

Description

For rpc methods like eth_getCode, a lot of dapps don't send the blockNumber argument even though it's required. In order to fix this, we are populating this argument with 'latest'. This is being done in an effort to clean sentry logs from this error.

Check extension for similar implementation: https://github.com/MetaMask/eth-json-rpc-middleware/blob/main/src/block-ref.ts#L53

How to test:
Just test as many dapps as possible on different networks, including custom networks, and see if they are all working correctly.

Issue

Resolves #3264

@andrepimenta andrepimenta requested a review from a team as a code owner October 6, 2021 15:36
@andrepimenta andrepimenta added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. labels Oct 6, 2021
@andrepimenta andrepimenta added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed No QA Needed Apply this label when your PR does not need any QA effort. labels Oct 12, 2021
@cortisiko cortisiko self-assigned this Oct 12, 2021
@cortisiko cortisiko added QA in Progress QA has started on the feature. and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Oct 12, 2021
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 🦖🦖🦖

@cortisiko cortisiko added QA Passed A successful QA run through has been done and removed QA in Progress QA has started on the feature. labels Oct 15, 2021
@andrepimenta andrepimenta merged commit 3f9d91c into develop Oct 18, 2021
@andrepimenta andrepimenta deleted the fix/populate-blocknumber branch October 18, 2021 16:49
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2021
@cortisiko cortisiko assigned andrepimenta and unassigned cortisiko Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean BSC and "missing argument 1" errors from Sentry
3 participants