diff options
author | Dimitry <dimitry@ethdev.com> | 2017-01-05 03:28:14 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-01-05 03:28:14 +0800 |
commit | 3bbfd218f807a872c82b0bc38c6b19276872d385 (patch) | |
tree | 27604c06ce2d73a68b108f4f8b45e8d9876bab05 /src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json | |
parent | 79b14fbd74c0148f1b8cca442252e9299464fe8c (diff) | |
download | dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.gz dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.bz2 dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.lz dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.xz dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.zst dexon-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.zip |
more Revert tests for Create opcode
Diffstat (limited to 'src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json')
-rw-r--r-- | src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json new file mode 100644 index 000000000..091800e0a --- /dev/null +++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrefoundCallFiller.json @@ -0,0 +1,105 @@ +{ + "RevertPrefoundCall" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "10000000", + "currentNumber" : "2675000", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead"], + "result" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "1", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP150"], + "result" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "1", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "1", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + } + ], + "pre" : + { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "1", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "a000000000000000000000000000000000000000" : { + "balance" : "1", + "code" : "{ [[0]] (CALL 50000 0x7db299e0885c85039f56fa504a13dd8ce8a56aa7 0 0 32 0 32) [[1]]12 }", + "nonce" : "", + "storage" : { + } + } + }, + "transaction" : { + "data" : "so X has nothing but the balance Transaction calls A A creates X A went OOG", + "data" : [ + "" + ], + "gasLimit" : [ + "94000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0" + ] + } + } +} |