Skip to content

Conversation

@patricios-space
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 10, 2025 21:46
@patricios-space patricios-space requested a review from a team as a code owner November 10, 2025 21:46
@github-actions
Copy link

👋 patricios-space, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements sender validation in the OnRamp contract by verifying that the sender is the authorized send executor for a given message ID. The changes replace a TODO comment with actual validation logic and refactor the executor address generation into a reusable inline function.

Key Changes:

  • Added sender validation in commit and replyWithError functions to ensure only authorized executors can call these functions
  • Extracted executor address calculation into a reusable executorAddresss inline function
  • Imported error definitions from the offramp module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@patricios-space patricios-space force-pushed the fix/send-executor-validation branch from 713431e to 8b0684e Compare November 10, 2025 21:48
@patricios-space patricios-space marked this pull request as draft November 10, 2025 22:36
@patricios-space patricios-space force-pushed the fix/send-executor-validation branch from dc19874 to 92e7f47 Compare November 11, 2025 11:08
})
}
})

Copy link
Collaborator Author

@patricios-space patricios-space Nov 11, 2025

Choose a reason for hiding this comment

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

I will refactor this test to fit inside the e2e below in a later PR: #332

@patricios-space patricios-space force-pushed the fix/send-executor-validation branch from 92e7f47 to aaddd51 Compare November 11, 2025 11:13
@patricios-space patricios-space marked this pull request as ready for review November 11, 2025 11:40
Copy link
Collaborator

@krebernisak krebernisak left a comment

Choose a reason for hiding this comment

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

LGTM!

@patricios-space patricios-space merged commit 425df1d into main Nov 11, 2025
35 checks passed
@patricios-space patricios-space deleted the fix/send-executor-validation branch November 11, 2025 13:42
@patricios-space patricios-space changed the title fix: validate sender is send executor [NONEVM-2994] [OnRamp] Validate sender is SenderExecutor on commit Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants