dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

Negative signed integers always one less when logged

Open isvidler opened this issue 2 years ago • 0 comments

Log statements in test:

emit log_int(-1);
emit log_int(-2);
emit log_int(-3);

Logged output:

    ├─ emit log_int(: -2)
    ├─ emit log_int(: -3)
    ├─ emit log_int(: -4)

Logged negative integers always return the correct value minus one in test traces. Outside of the test traces, the logged output is correct.

Our team believes this might be an issue with HEVM.

isvidler avatar Mar 24 '22 18:03 isvidler