Skip to content
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

Added value checker inside relayed transactions v2. #173

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cristure
Copy link
Contributor

Because of the missing check. One could pass in a signed transaction with a value different to 0. The builder will overwrite the value field anyway and thus making the signature invalid.

@@ -86,7 +90,7 @@ func (rtb *relayedTxV2Builder) Build() (*transaction.FrontendTransaction, error)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also add checks for the following fields to match between the inner and the relayed transactions?

GasPrice
ChainID
Version
Options

@cristure cristure marked this pull request as draft February 14, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants