fix(evm): align insufficient-funds-for-transfer message with Geth#12167
Conversation
|
Claude finished @manusw7's task in 2m 9s —— View job Review: PR #12167 — align insufficient-funds-for-transfer message with Geth
The change is clean and well-targeted. Renaming FindingsMedium — alignment is incomplete; a sibling RPC error path still emits the old wording
: StateException($"insufficient sender balance for transfer: address {address}")This Suggest either aligning this message too (e.g. Low — no new regression test CONTRIBUTING asks for a regression test when fixing a bug. The PR updates existing assertions rather than adding a new test. This is acceptable here since the changed message is already guarded at the RPC boundary by Low — verify exact Geth string
VerdictNo correctness, security, or performance concerns — string-only change on a non-hot path. The Medium finding is a consistency gap relative to the PR's own rationale; it does not break anything but should be addressed or explicitly acknowledged before merge. |
|
This looks like it was changed here #11561 @benaadams Is there any reason? Any other tests maybe failing somewhere else or just an accident? |
EVM Opcode Benchmark DiffAggregated runs: base=3, pr=3 Improvements (1)
|
LukaszRozmej
left a comment
There was a problem hiding this comment.
Potentially some tests should also share the const, but that is debatable and probably not all, so I will leave it up to you.
Summary
Fixes #12164.
"insufficient sender balance for transfer"to"insufficient funds for transfer"to match Geth's outputStructLogEnvelopeWritersince the message is correct at the sourceWhy
viem, ethers, and other client libraries regex-match on
"insufficient funds"to detect this error. Nethermind's non-standard message caused false negatives in those libraries.