smartcontractkit / huff-starter-kit

A template repo to work with huff smart contracts and learn about low level EVM opcodes. Also Horse ♘.
101 stars 13 forks source link

Fix Stack Comments #4

Closed Kuly14 closed 1 year ago

Kuly14 commented 1 year ago

After the staticcall the result is pushed to the stack, but after we use the iszero opcode, it is popped off the stack, and the result from the iszero is pushed onto the stack.

In this case, it's just 0x00 because iszero returned false because staticcall returned true 0x01.

PatrickAlphaC commented 1 year ago

Ah! Thank you for this!!