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

"Program terminated with a trap: 'attempt to subtract with overflow' #205

Open
mikenike360 opened this issue Jan 20, 2024 · 1 comment
Open

Comments

@mikenike360
Copy link

Playing around with the tamagotchi contract and app. Once the tamagotchi stat gets to 8 or below I start getting this error and the whole apps locks up. However if the stat is above 8 then the wallet transaction processes like normal.

8000: Runtime error: "Program terminated with a trap: 'attempt to subtract with overflow', /home/mikenike/dapps/contracts/tamagotchi/src/lib.rs:51:24"

image

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

No branches or pull requests

2 participants