This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 576a824
committed
Emit better balance diffs when comparing accounts
Instead of emitting expected - actual, emit actual - expected.
Rationale (by @veox):
> For example, as things stand, if a fixture-expected value is 1000, and
> the actual produced by py-evm is 500, the printed message will show a
> delta of 500 - that is, a net positive, whereas what truly happened is
> py-evm having produced a value that's too low. This is confusing: say, a
> miner's account balance showing "Delta: 500" makes one think that the
> miner received 500 wei more than expected (which is not true).
Reference:
- #1181 (comment)
- #1573 (comment)1 parent 5055f5b commit 576a824
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments