aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-03-23 22:12:46 +0800
committerDimitry <dimitry@ethereum.org>2018-05-15 22:43:32 +0800
commit65184583143d1c31f0c360280bc247c952f25ae4 (patch)
treed837b57f599b845a5659cc453c7a7d95fd33b8c7 /src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json
parenta55c8c39203d3ae6c65a1517b8c001b274f41d10 (diff)
downloadtangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar.gz
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar.bz2
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar.lz
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar.xz
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.tar.zst
tangerine-tests-65184583143d1c31f0c360280bc247c952f25ae4.zip
fix more tests
Diffstat (limited to 'src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json')
-rw-r--r--src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json42
1 files changed, 35 insertions, 7 deletions
diff --git a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json
index 086e0ec2b..24da2545a 100644
--- a/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json
+++ b/src/GeneralStateTestsFiller/stInitCodeTest/OutOfGasContractCreationFiller.json
@@ -9,31 +9,58 @@
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"expect" : [
- {
+ {
"indexes" : {
"data" : -1,
- "gas" : -1,
+ "gas" : 0,
"value" : -1
},
"network" : ["Frontier"],
"result" : {
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "balance" : "838000"
+ "balance" : "838000"
}
}
},
{
"indexes" : {
"data" : -1,
- "gas" : -1,
+ "gas" : 0,
"value" : -1
},
- "network" : [">=Homestead"],
+ "network" : [">Frontier"],
"result" : {
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "//comment" : "Transaction should be rejected because creation + dataGas > trGas",
"balance" : "1000000"
}
}
+ },
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : -1
+ },
+ "network" : [">=Frontier"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "550000"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : -1
+ },
+ "network" : [">Frontier"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "699771"
+ }
+ }
}
],
"pre" : {
@@ -47,10 +74,11 @@
},
"transaction" : {
"data" : [
- "0x600a80600c6000396000f200600160008035811a8100"
+ "0x600a80600c6000396000f200600160008035811a8100",
+ "0x600160015560026001556003600155600460015560056001556006600155"
],
"gasLimit" : [
- "54000"
+ "54000", "150000"
],
"gasPrice" : "3",
"nonce" : "0",