aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2017-10-25 19:07:50 +0800
committerDimitry <dimitry@ethereum.org>2017-10-25 19:07:50 +0800
commit13c7891fff8f6101f7d2033b9384ddffcbe5e7de (patch)
tree55bd567e6b8f85e2be6810ddd4019c07da4efcf7 /src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json
parentdc9e2cbd33a43872097ed9bc97681a944a0cdd0d (diff)
downloadtangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar.gz
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar.bz2
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar.lz
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar.xz
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.tar.zst
tangerine-tests-13c7891fff8f6101f7d2033b9384ddffcbe5e7de.zip
create failing inside staticcall
Diffstat (limited to 'src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json')
-rw-r--r--src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json b/src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json
new file mode 100644
index 000000000..e0b1f1089
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stBugs/staticcall_createfailsFiller.json
@@ -0,0 +1,92 @@
+{
+ "staticcall_createfails": {
+ "env": {
+ "currentCoinbase": "0x1000000000000000000000000000000000000000",
+ "currentDifficulty": "0x20000",
+ "currentGasLimit": "0x54a60a4202e088",
+ "currentNumber": "0x01",
+ "currentTimestamp": "0x03e8",
+ "previousHash": "0x0da7f1041f7b60aec6b67cafa0c08c10c9954d0b43737891d204ff372d166593"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : [0],
+ "gas" : 0,
+ "value" : 0
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage": {
+ "0x01" : "0x00"
+ }
+ },
+ "0x1d0384eb7c2b1a9d9862c8e180f9e4d1696a2a8e" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1],
+ "gas" : 0,
+ "value" : 0
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage": {
+ "0x01" : "0x00"
+ }
+ },
+ "0x82db939397f8eb81135c6c703368a27a40059f0c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ }
+ ],
+ "pre": {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
+ "balance": "0x38beec8feeca2598",
+ "code": "",
+ "nonce": "0x00",
+ "storage": {}
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
+ "balance": "0",
+ "code": "{ [[1]] (STATICCALL 70000 (CALLDATALOAD 0) 0 0 0 0) }",
+ "nonce": "0x3f",
+ "storage": {
+ "0x01" : "0x01"
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
+ "balance": "0",
+ "//comment" : "Create fails due to insufficient founds",
+ "code": "{ (MSTORE 1 1) [[2]] (CREATE 1 1 1) }",
+ "nonce": "0x3f",
+ "storage": {}
+ },
+ "0xd94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
+ "balance": "0",
+ "//comment" : "Create fails due to wrong stack",
+ "code": "0x60006000f0",
+ "nonce": "0x3f",
+ "storage": {}
+ }
+ },
+ "transaction": {
+ "data": [
+ "0x000000000000000000000000c94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "0x000000000000000000000000d94f5374fce5edbc8e2a8697c15331677e6ebf0b"
+ ],
+ "gasLimit": ["120000"],
+ "gasPrice": "0x01",
+ "nonce": "0x00",
+ "secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to": "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value": ["0x00"]
+ }
+ }
+}