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 underflow #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix underflow #1

wants to merge 1 commit into from

Conversation

exp7l
Copy link

@exp7l exp7l commented Jul 11, 2022

Hi, when I changed pragma to 0.8.x, the code fails at compile time because of underflow in L194 during the first mint.

    ├─ [52444] DSDeed::mint(0x00000000219ab540356cbb839cbe05303d7705fa, "t1") 
    │   └─ ← "Arithmetic over/underflow"
    └─ ← "Arithmetic over/underflow"

The call to _upush fixes upos, so data looks good to the caller.
I added a branch here so it will compile, should be good as a temporary fix.

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