test: Properly clear storage dirty flag

Clear storage dirty flag between transactions in EVMHost. The EIP-2200
dirty flag should be persisted only in a single transaction.
This commit is contained in:
Paweł Bylica
2022-11-08 18:13:17 +01:00
committed by Paweł Bylica
parent d472c94ff6
commit c4b6f5f00b
26 changed files with 132 additions and 106 deletions
@@ -87,9 +87,9 @@ contract Test {
// EVMVersion: >homestead
// ----
// test1() -> true
// gas irOptimized: 150163
// gas legacy: 150266
// gas legacyOptimized: 149875
// gas irOptimized: 152963
// gas legacy: 153066
// gas legacyOptimized: 152675
// test2() -> true
// test3() -> true
// test4() -> true
@@ -31,6 +31,9 @@ contract c {
// copy() -> true
// storageEmpty -> 1
// set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true
// gas irOptimized: 133599
// gas legacy: 134654
// gas legacyOptimized: 133882
// storageEmpty -> 0
// del() -> true
// storageEmpty -> 1
@@ -46,3 +46,6 @@ contract C {
// gas legacy: 122132
// gas legacyOptimized: 121500
// g() ->
// gas irOptimized: 145472
// gas legacy: 145707
// gas legacyOptimized: 144940