MetaMask / MetaMask/core

[eth-json-rpc-middleware] Some Infura RPC methods should be cached but are not

Open
#6,874 4 comments 0 reactions 0 assignees View on GitHub
team-wallet-framework
Dominant language
TypeScript
Stars
413
Forks
308
Avg merge
1d 4h
Merged PRs (30d)
253

Description

The following RPC methods take block parameters and yet are not covered in `blockTagParamIndex` and so are not being cached the same as other RPC methods which take block parameters:

* `eth_getBlockTransactionCountByNumber`
* `eth_getTransactionByBlockNumberAndIndex`
* `eth_getUncleByBlockNumberAndIndex`
* `eth_getUncleCountByBlockNumber`

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the eth-json-rpc-middleware package for blockTagParamIndex and compare its entries with the four RPC methods named in the issue. Inspect nearby tests, add coverage for the missing methods, and consider the issue done when those block-parameter methods are cached consistently and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.