dapps icon indicating copy to clipboard operation
dapps copied to clipboard

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

Open mikenike360 opened this issue 2 years ago • 1 comments

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

mikenike360 avatar Jan 20 '24 20:01 mikenike360

Contracts CI

Madib036 avatar Feb 13 '24 02:02 Madib036