fix: refuse an unsupported method with EIP-1193 code 4200 #421

Merged
clawbot merged 1 commits from issue-279-unsupported-method-4200 into next 2026-10-04 09:24:42 +02:00
1 Commits
Author SHA1 Message Date
sneak fc0530cc41 fix: refuse an unsupported method with EIP-1193 code 4200 (closes #279)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
handleRpc() answered a method it does not implement with
"Unsupported method: <method>" and no code, so a site probing for an
optional method could not tell "not implemented" from "the call failed"
and fall back. It now carries code 4200, which EIP-1193 defines for this
case; the message is unchanged. The provider already passes any code
through to the page.

The new test hands the real background's reply to the provider and
checks the page sees 4200.

Model: opus-5-5
2026-10-04 06:42:16 +00:00