for example, I have these opcodes:


for sub operations, I believe that the second stack item is subtracted from the first stack item (60 - 40) which would equal to -20 being the new first stack item. I know this would be stored as hexadecimal, but does the stack store negative numbers? Thanks


Found it, sorry was quite simple, it would be stored as uint, as -20 modular (%) 2^256

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.