Commit 2d6f80b
authored
fix DuplicateContract error (#325)
... when running something like this
```
function testPrank0AfterPrank1(address sender, address origin) public {
vm.pvm(true);
Victim victim = new Victim();
NestedVictim nestedVictim = new NestedVictim(victim);
```
Because nonce does get incremented on create we end up with the same
address for 2 different contracts.
Signed-off-by: Alexandru Gheorghe <[email protected]>1 parent ea9950f commit 2d6f80b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
0 commit comments