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

Make code compile and update open zeppelin dependency #15

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

0x-r4bbit
Copy link
Contributor

The SNTPlaceholder uses MiniMeToken type in a function even though only MiniMeBase is actually imported.

This commit fixes the function signature so that the code can actually compile.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Added natspec comments?
  • Ran forge snapshot?
  • Ran pnpm lint?
  • Ran forge test?

The `SNTPlaceholder` uses `MiniMeToken` type in a function even though
only `MiniMeBase` is actually imported.

This commit fixes the function signature so that the code can actually
compile.
@0x-r4bbit 0x-r4bbit requested a review from 3esmit October 5, 2023 09:57
@0x-r4bbit
Copy link
Contributor Author

I'm having trouble making prettier happy. It seems to complain about contracts.json on CI.
But not locally. Impossible to tell what the issue is.

Ignoring contracts.json in prettierignore for now.

Prettier is complaining about it on CI but it doesn't tell what it
complains about. It lints perfectly fine locally.

For now, ignoring `contracts.json` so we get past the linting stage.
The code couldn't compile because it was using a version of
`Ownable2Step` that introduced breaking changes.

This commit sets the used version to the latest stable release of OZ,
which is 4.9.3. Hence the usages of `Ownable2Step` needed to change as
well.
@0x-r4bbit 0x-r4bbit force-pushed the fix/minitoken-usage branch from 5336a7d to a07e6e6 Compare October 5, 2023 10:33
@0x-r4bbit 0x-r4bbit changed the title fix(SNTPlaceHolder): fix incorrect usage of minime token type Make code compile and update open zeppelin dependency Oct 5, 2023
@0x-r4bbit 0x-r4bbit merged commit c76ba5b into master Oct 5, 2023
6 checks passed
@0x-r4bbit 0x-r4bbit deleted the fix/minitoken-usage branch October 5, 2023 10:37
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.

1 participant