Skip to content

Validate cip64 tx#60

Merged
gastonponti merged 6 commits intomainfrom
gastonponti/cip64-price-validation
Aug 15, 2025
Merged

Validate cip64 tx#60
gastonponti merged 6 commits intomainfrom
gastonponti/cip64-price-validation

Conversation

@gastonponti
Copy link
Contributor

For cip64 validates the chainId and that the baseFee is covered by the gasPrice (in the correct currency)

Copy link
Contributor

@karlb karlb left a comment

Choose a reason for hiding this comment

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

Just one comment needs fixing.

validate_priority_fee_tx(max_fee, max_priority_fee, Some(base_fee_in_erc20))?;
}
_ => {
// Other tx types will be handled by the mainnet handler
Copy link
Contributor

Choose a reason for hiding this comment

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

mainnet handler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Later in the self.mainnet.validate_env(evm) call. Sorry, maybe the comment could be more informational. I'll add it in a different PR

@gastonponti gastonponti merged commit 239f296 into main Aug 15, 2025
12 checks passed
@gastonponti gastonponti deleted the gastonponti/cip64-price-validation branch August 15, 2025 14:56
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

Comments