dapphub / dapphub/dapptools

Negative signed integers always one less when logged

Open
#930 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

**Log statements in test:**
```solidity
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.