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

chore: tighten pragma #35

Merged
merged 1 commit into from
Jan 8, 2022
Merged

chore: tighten pragma #35

merged 1 commit into from
Jan 8, 2022

Conversation

gakonst
Copy link
Contributor

@gakonst gakonst commented Jan 6, 2022

As-is, the code will not work with any version after 0.7.0 (inclusive).

  • >=0.7.0 errors due to usage of now which has been deprecated in favor of block.timestamp
  • >=0.8.0 errors due to:
    • type conversion from "int_const -1" to "uint256", which can be replaced with type(uint256).max
    • type conversion from int_const 0" to "contract DSAuthority"

As-is, the code will not work with any version after 0.7.0 (inclusive).

* >=0.7.0 errors due to usage of `now` which has been deprecated in favor of `block.timestamp`
* >=0.8.0 errors due to:
    * `type conversion from "int_const -1" to "uint256"`, which can be replaced with `type(uint256).max`
    * `type conversion from int_const 0" to "contract DSAuthority"`
@d-xo
Copy link
Contributor

d-xo commented Jan 8, 2022

thanks!

gakonst added a commit to gakonst/ds-token that referenced this pull request Jan 8, 2022
metacoffee0x17 pushed a commit to metacoffee0x17/Solidity-ds-token that referenced this pull request Oct 1, 2022
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