diff options
author | Matthew Dean <matthew.dean@digicatapult.org.uk> | 2018-09-07 18:28:29 +0800 |
---|---|---|
committer | Matthew Dean <matthew.dean@digicatapult.org.uk> | 2018-09-10 17:50:03 +0800 |
commit | 3ce22f987d814a0160d15e8813a302b085964bcb (patch) | |
tree | 1f7ac485a0c5ddb49dc2b156261feade12754c99 /GeneralStateTests | |
parent | dde85c71308c624cd63d9573e449f1123e9ecc90 (diff) | |
download | dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar.gz dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar.bz2 dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar.lz dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar.xz dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.tar.zst dexon-tests-3ce22f987d814a0160d15e8813a302b085964bcb.zip |
Add new touched cleanup case
Regression test for https://github.com/ethereumjs/ethereumjs-vm/pull/335
First call marks an empty account as touched. Second call errors OOG. Transaction should still cleanup empty account.
Diffstat (limited to 'GeneralStateTests')
-rw-r--r-- | GeneralStateTests/stEIP158Specific/callToEmptyThenCallError.json | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/GeneralStateTests/stEIP158Specific/callToEmptyThenCallError.json b/GeneralStateTests/stEIP158Specific/callToEmptyThenCallError.json new file mode 100644 index 000000000..0171b425e --- /dev/null +++ b/GeneralStateTests/stEIP158Specific/callToEmptyThenCallError.json @@ -0,0 +1,99 @@ +{ + "callToEmptyThenCallError" : { + "_info" : { + "comment" : "", + "filledwith" : "testeth 1.5.0.dev2-44+commit.bc7187ea", + "lllcversion" : "Version: 0.4.25-develop.2018.9.5+commit.9cb72fe6.Darwin.appleclang", + "source" : "src/GeneralStateTestsFiller/stEIP158Specific/callToEmptyThenCallErrorFiller.json", + "sourceHash" : "35907a4324732d5076898bb2f86ea15c20cb0dc242170e862f255a5c83050004" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0xf341372fc018357dda85c74aaae4029b5196a4a67035584f33a05382ae9b1099", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Constantinople" : [ + { + "hash" : "0xf341372fc018357dda85c74aaae4029b5196a4a67035584f33a05382ae9b1099", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP158" : [ + { + "hash" : "0xf341372fc018357dda85c74aaae4029b5196a4a67035584f33a05382ae9b1099", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x6000600060006000600073ee098e6c2a43d9e2c04f08f0c3a87b0ba59079d46000f1506000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b6000f1", + "nonce" : "0x00", + "storage" : { + } + }, + "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x5a", + "nonce" : "0x00", + "storage" : { + } + }, + "0xee098e6c2a43d9e2c04f08f0c3a87b0ba59079d4" : { + "balance" : "0x00", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x" + ], + "gasLimit" : [ + "0x0927c0" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file |