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

remove tx.origin checks #269

Merged
merged 8 commits into from
Mar 21, 2024
Merged

remove tx.origin checks #269

merged 8 commits into from
Mar 21, 2024

Conversation

ccashwell
Copy link
Contributor

Changes:

  • Removed tx.origin validation
  • Removed origin mismatch revert test
    • Incidentally, the claim that was being passed in for that test fails anyway, so that was replaced as well.

@ccashwell ccashwell requested a review from a team as a code owner March 19, 2024 18:43
@ccashwell ccashwell requested a review from Quazia March 19, 2024 18:57
Copy link
Member

@Quazia Quazia left a comment

Choose a reason for hiding this comment

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

LGTM - I'd remove the whole test but not mission critical I reckon.

@@ -306,8 +305,7 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils {
}

function test_claimCompressed_revert_txOriginMismatch() public{
Copy link
Member

Choose a reason for hiding this comment

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

Should we just remove the whole test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I always feel iffy about deleting tests that assert specific behavior like this. Open to removing it.

Copy link
Member

Choose a reason for hiding this comment

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

Well we arn't asserting that behavior anymore, right?

@Quazia Quazia merged commit ad14258 into main Mar 21, 2024
2 checks passed
@Quazia Quazia deleted the ignore-tx-origin branch March 21, 2024 15:31
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