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 for Slither exercise 1 #187

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

bart1e
Copy link
Contributor

@bart1e bart1e commented Dec 29, 2022

Current solution is checking for mint.contract that seems to always return the current contract.
As a result, it returns an error for any contract that inherits from Coin, even if it does not override _mint.
It also returns an error for contracts inheriting from a contract overriding _mint (see issue #10) even if they don't override _mint themselves.

Fixes #10.

@montyly
Copy link
Member

montyly commented Feb 15, 2023

Thanks @bart1e

@montyly montyly added this pull request to the merge queue Feb 15, 2023
Merged via the queue into crytic:master with commit 093cd11 Feb 15, 2023
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.

The solution for the slither exercise 1 is not general enough
2 participants