diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-10-13 23:41:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 23:41:53 +0800 |
commit | 7f638829311dfc1d341c1db85d8a891f57fa4da7 (patch) | |
tree | b2f3faa2e8334a909616a007e7a9d75c405226df /src/GeneralStateTestsFiller | |
parent | 1d57cadab1d973612f69b10ef4a4fc58e42fe578 (diff) | |
parent | 6e80effa947d9581e5ef8c4e02a45725f5af4346 (diff) | |
download | tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar.gz tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar.bz2 tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar.lz tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar.xz tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.tar.zst tangerine-tests-7f638829311dfc1d341c1db85d8a891f57fa4da7.zip |
Merge pull request #354 from ethereum/modexpinput
fuzzed test modexp input
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r-- | src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json new file mode 100644 index 000000000..bc6f3057a --- /dev/null +++ b/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json @@ -0,0 +1,82 @@ +{ + "modexpRandomInput": { + "_info" : { + "comment" : "Fuzzed input discovered by Guido" + }, + "env": { + "currentCoinbase": "0x3535353535353535353535353535353535353535", + "currentDifficulty": "0x020000", + "currentGasLimit": "0x5f5e100", + "currentNumber": "0x1", + "currentTimestamp": "1000", + "previousHash": "0xc6745cf3cada515bbfb9573261c82547e0b8f9e3d5dd382e464704a84e47b5ad" + }, + "expect": [ + { + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : -1 + }, + "network" : ["Byzantium"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "999999999999999977128" + } + } + }, + { + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : -1 + }, + "network" : ["Byzantium"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "999999999999999290000" + } + } + }, + { + "indexes" : { + "data" : 2, + "gas" : 1, + "value" : -1 + }, + "network" : ["Byzantium"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "999999999999993000000" + } + } + } + ], + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction": { + "data": [ +"0x00000000000000000000000000000000000000000000000000000000000000e300000000000000000000000000000000000000000000000000", +"0x00000000008000000000000000000000000000000000000000000000000000000000000400000000000000000000000a", +"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001147000000000000000000000000000000000000000000000000000000000061660350000000000000000000000000000000000000000000000000000000000000008" + ], + "gasLimit": [ + "710000", "7000000" + ], + "gasPrice": "1", + "nonce": "0", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "0x0000000000000000000000000000000000000005", + "value": [ + "0x" + ] + } + } +} |