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

fix: miscellaneous #63

Merged
merged 4 commits into from
Jan 30, 2025
Merged

fix: miscellaneous #63

merged 4 commits into from
Jan 30, 2025

Conversation

oed
Copy link
Contributor

@oed oed commented Jan 29, 2025

@oed oed requested a review from avichalp January 29, 2025 11:39
@oed oed self-assigned this Jan 29, 2025
@oed oed changed the title fix: Miscellaneous fix: miscellaneous Jan 29, 2025
@oed oed requested review from ukstv and dtbuchholz January 29, 2025 17:51
@@ -112,6 +108,7 @@ contract Recall is
{
uint256 _allowance = allowance(sender, spender);
if (_allowance != type(uint256).max) {
require(_allowance >= amount, "ERC20: insufficient allowance");
Copy link
Member

Choose a reason for hiding this comment

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

might be good to use a custom error? because we are not using requires in other contracts for assertions. but nbd

Copy link
Contributor

Choose a reason for hiding this comment

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

iirc we have solhint warning if you use require, and I previously went through and converted everything to use explicit errors. so I agree...keep it consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Throws an error now, all good?

@oed oed requested review from avichalp and dtbuchholz January 30, 2025 12:55
@oed oed merged commit 0c301b0 into main Jan 30, 2025
7 checks passed
@oed oed deleted the fix/misc branch January 30, 2025 14:22
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.

Miscellaneous
4 participants