aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json')
-rw-r--r--src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json54
1 files changed, 51 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json b/src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json
index b57cb276e..6f32e77b0 100644
--- a/src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json
+++ b/src/GeneralStateTestsFiller/stStaticCall/static_CallAndCallcodeConsumeMoreGasThenTransactionHasFiller.json
@@ -11,7 +11,7 @@
"expect" : [
{
"indexes" : {
- "data" : -1,
+ "data" : 0,
"gas" : -1,
"value" : -1
},
@@ -32,6 +32,30 @@
}
}
}
+ },
+ {
+ "indexes" : {
+ "data" : 1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "c94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x12",
+ "0x08" : "0x08aa2f",
+ "0x09" : "0x01",
+ "0x0a" : "0x01"
+ }
+ },
+ "2000000000000000000000000000000000000103" : {
+ "code" : "0x6012600052",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ }
}
],
"pre" :
@@ -43,6 +67,13 @@
"storage" : {
}
},
+ "1000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[ 0 ]] (CALL (GAS) (CALLDATALOAD 0) (CALLVALUE) 0 0 0 0) [[ 1 ]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
"b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0",
"nonce" : "0",
@@ -59,11 +90,28 @@
"code" : "{ (SSTORE 0 0x12) } ",
"storage": {
}
+ },
+ "c94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0",
+ "nonce" : "0",
+ "code" : "By new EIP150 rules this transaction would be executed even if call consumes more gas then transaction has.",
+ "code" : "Staticcall goes oog and eats 600k gas",
+ "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (STATICCALL 600000 0x2000000000000000000000000000000000000103 0 0 0 0)) (SSTORE 10 (CALLCODE 600000 0x1000000000000000000000000000000000000103 0 0 0 0 0)) }",
+ "storage": {
+ }
+ },
+ "2000000000000000000000000000000000000103" : {
+ "balance" : "0",
+ "nonce" : "0",
+ "code" : "{ (MSTORE 0 0x12) } ",
+ "storage": {
+ }
}
},
"transaction" : {
"data" : [
- ""
+ "0x000000000000000000000000b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "0x000000000000000000000000c94f5374fce5edbc8e2a8697c15331677e6ebf0b"
],
"gasLimit" : [
"600000"
@@ -71,7 +119,7 @@
"gasPrice" : "1",
"nonce" : "0",
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
- "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "to" : "1000000000000000000000000000000000000000",
"value" : [
"0"
]