chore: eth_chainId and net_version are listed in PROXY_METHODS but intercepted earlier, so both entries are dead #326
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the review of #319. Pre-existing, harmless today.
eth_chainId(src/background/index.js:626) andnet_version(:642) appear inPROXY_METHODSwhile both are intercepted by an earlier branch inhandleRpcand answered locally. The two list entries are unreachable.No behaviour depends on them, which is why this is not in the 1.0.0 milestone. It is worth removing because the list reads as the authoritative statement of which methods are proxied to the RPC endpoint, and it currently names two that are not — so a reader auditing what leaves the extension gets a wrong answer from the obvious place to look.
Definition of done
PROXY_METHODSentry checked againsthandleRpc's earlier branches for the same shadowing; report the result.make checkgreen.