-
Notifications
You must be signed in to change notification settings - Fork 80
fix: eth_sendRawTransaction now handles malformed RLP data correctly #3714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…re now handled correctly Signed-off-by: Simeon Nakov <[email protected]>
Test Results 24 files + 4 317 suites +62 52m 16s ⏱️ + 11m 27s For more details on these failures, see this check. Results for commit faa0fea. ± Comparison against base commit b882f71. ♻️ This comment has been updated with latest results. |
Signed-off-by: Simeon Nakov <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
@@ -195,6 +195,18 @@ describe('@ethSendRawTransaction eth_sendRawTransaction spec', async function () | |||
); | |||
}); | |||
|
|||
it('should return a predefined INVALID_ARGUMENTS when transaction has invalid format', async function () { | |||
const invalidTx = | |||
'0xf8748201280585800e8dfc0085800e8dfc00832dc6c094aca85ef7e1fce27079bbf99b60fcf6fd19b99b248502540be40080c001a0210446cfb671c3174392410d52fa3cd58723d8417e40cc67c6225b8f7e3ff693a02674b392846c59f783ea96655d39560956dd987051972064a5d853cea0b6f6d711'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May we add a comment on exactly how is this tx invalid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! Thanks for the good work! LGTM
Description:
In this PR, the
eth_sendRawTransaction
logic now handles malformed RLP data correctly by checking for INVALID_ARGUMENT error and returning a predifined error and 400 status code.Related issue(s):
Fixes #3652
Checklist