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

Msg value refund #20

Merged
merged 7 commits into from
Jan 24, 2024
Merged

Msg value refund #20

merged 7 commits into from
Jan 24, 2024

Conversation

thogard785
Copy link
Collaborator

Refund the msg.value to sender when the searcher call throws, to prevent it accumulating on the contract.

Copy link
Contributor

@BenSparksCode BenSparksCode left a comment

Choose a reason for hiding this comment

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

LGTM

Only note is that I just added evm_version = 'paris' in the Foundry settings as the Solidity compiler version is now set to 0.8.20 which would include PUSH0 by default, which is not currently supported on Polygon PoS. Targeting Paris EVM version should make this safe for Polygon.

@BenSparksCode BenSparksCode mentioned this pull request Jan 4, 2024
@thogard785 thogard785 merged commit 38e7243 into main Jan 24, 2024
1 check passed
@thogard785 thogard785 deleted the msg-value-refund branch January 24, 2024 07:49
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.

3 participants