aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-08-11 11:10:05 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-08-11 11:10:05 +0800
commit4052972ac81ed076e96fab434c299a6503fcea5b (patch)
treed9e1ec9b0b9a95cb05858efc17139001f8c98d29
parent5870e81f3f5c79b067435b4a720c71b73e75a219 (diff)
downloaddexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar.gz
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar.bz2
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar.lz
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar.xz
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.tar.zst
dexon-tests-4052972ac81ed076e96fab434c299a6503fcea5b.zip
Add test for multiple internal call + suicide
-rw-r--r--StateTests/stRefundTest.json74
1 files changed, 73 insertions, 1 deletions
diff --git a/StateTests/stRefundTest.json b/StateTests/stRefundTest.json
index 932fe239f..ee92f9610 100644
--- a/StateTests/stRefundTest.json
+++ b/StateTests/stRefundTest.json
@@ -813,6 +813,78 @@
"value" : "0x0a"
}
},
+ "refund_multiple_internal_call_plus_suicide" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x00",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "aaae7baea6a6c7c4c2dfeb977efac326af552aaa" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73095e7baea6a6c7c4c2dfeb977efac326af552d87ff",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "0x2d1a1",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xde0b6a99d572455",
+ "code" : "0x",
+ "nonce" : "0x02",
+ "storage" : {
+ }
+ }
+ },
+ "postStateRoot" : "37c66597ede8e84f30922a801be6c54cf985c984352becfd20deb5814598998d",
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x",
+ "code" : "0x60606040526000357c010000000000000000000000000000000000000000000000000000000090048063c6542cdb14610044578063f8b0a0701461005157610042565b005b61004f600450610079565b005b61005c60045061005e565b005b3373ffffffffffffffffffffffffffffffffffffffff16ff5b565b60006000309150600090505b600a8160ff1610156100bc578060ff16600060005082600a81101561000257909001600050819055505b8080600101915050610085565b8173ffffffffffffffffffffffffffffffffffffffff1663f8b0a070604051817c01000000000000000000000000000000000000000000000000000000000281526004018090506000604051808303816000876161da5a03f115610002575050508173ffffffffffffffffffffffffffffffffffffffff1663f8b0a070604051817c01000000000000000000000000000000000000000000000000000000000281526004018090506000604051808303816000876161da5a03f115610002575050508173ffffffffffffffffffffffffffffffffffffffff1663f8b0a070604051817c01000000000000000000000000000000000000000000000000000000000281526004018090506000604051808303816000876161da5a03f115610002575050508173ffffffffffffffffffffffffffffffffffffffff1663f8b0a070604051817c01000000000000000000000000000000000000000000000000000000000281526004018090506000604051808303816000876161da5a03f115610002575050505b505056",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ },
+ "aaae7baea6a6c7c4c2dfeb977efac326af552aaa" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73095e7baea6a6c7c4c2dfeb977efac326af552d87ff",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "0xc6542cdb",
+ "gasLimit" : "0x989680",
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "0x0a0a0a0a0a"
+ }
+ },
+
"refund_NoOOG_1" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
@@ -1194,4 +1266,4 @@
"value" : "0x0a"
}
}
-} \ No newline at end of file
+}