fix(test): sign state-test transactions instead of using a placeholder signature - #11969
Conversation
… using a placeholder signatur
|
@claude review |
|
Claude finished @flcl42's task in 2m 46s —— View job Code Review
SummaryThe fix is correct. The root cause is clear: state tests carry a placeholder signature The FindingsNo Critical / High / Medium issues. Low — double
|
| Concern | Verdict |
|---|---|
| Crash path fixed | ✅ Signing with real key prevents bogus recovery |
Address.Zero guard for intentionally-invalid txs |
✅ Correct |
chainId propagation |
✅ Loaded from test config and passed through |
| Non-legacy typed txs (EIP-1559, Blob, SetCode) | ✅ isEip155Enabled only affects legacy V adjustment; chain ID embedded in typed tx via tx.ChainId = ecdsa.ChainId |
| Hash recalculation after signing | ✅ Required, correctly done |
SecretKey is not null guard |
✅ Defensive; note that line 125 would already throw if null |
Mergeable. Nits above are take-or-leave; none block the fix.
|
Thanks the fix! |
during fuzzing i saw nethtest crash and here is the fix (case is not relevant for mainnet). for more context and instructions on how to reproduce check out the execution-specs PR which can be used for verifying the current crash and that this fix works. thank you for your attention to this matter
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?