aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-03-07 21:18:22 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-03-07 21:18:22 +0800
commitdb9e0e7b319a0b13de1502b178acf97026ee0527 (patch)
tree3690c9372c1bacb9d1bf1f0ed209e1f578175ad8
parent986fdb9d5fef87769caa140d9b4903178cf1874a (diff)
downloaddexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar.gz
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar.bz2
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar.lz
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar.xz
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.tar.zst
dexon-solidity-db9e0e7b319a0b13de1502b178acf97026ee0527.zip
add suiciderefund tests
-rw-r--r--stRefundTestFiller.json89
-rw-r--r--stTransactionTestFiller.json4
2 files changed, 91 insertions, 2 deletions
diff --git a/stRefundTestFiller.json b/stRefundTestFiller.json
index 9e867a50..b0d0e174 100644
--- a/stRefundTestFiller.json
+++ b/stRefundTestFiller.json
@@ -304,6 +304,95 @@
"data" : ""
}
},
+
+ "refund_CallToSuicide" : {
+ "env" : {
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
+ "currentNumber" : "0",
+ "currentGasLimit" : "10000000",
+ "currentDifficulty" : "256",
+ "currentTimestamp" : 1,
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "nonce" : "0",
+ "code" : "{ [[ 0 ]] (CALL 500 0xaaae7baea6a6c7c4c2dfeb977efac326af552aaa 0 0 0 0 0 )}",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "aaae7baea6a6c7c4c2dfeb977efac326af552aaa" : {
+ "balance" : "1000000000000000000",
+ "nonce" : "0",
+ "code" : "{ (SUICIDE 0x095e7baea6a6c7c4c2dfeb977efac326af552d87) }",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "100000000",
+ "nonce" : "0",
+ "code" : "",
+ "storage": {}
+ }
+ },
+ "transaction" : {
+ "nonce" : "0",
+ "gasPrice" : "1",
+ "gasLimit" : "10000000",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "10",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "data" : ""
+ }
+ },
+
+ "refund_CallToSuicideTwice" : {
+ "env" : {
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
+ "currentNumber" : "0",
+ "currentGasLimit" : "10000000",
+ "currentDifficulty" : "256",
+ "currentTimestamp" : 1,
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "nonce" : "0",
+ "code" : "{ [[ 0 ]] (CALL 500 0xaaae7baea6a6c7c4c2dfeb977efac326af552aaa 0 0 0 0 0 ) (CALL 500 0xaaae7baea6a6c7c4c2dfeb977efac326af552aaa 0 0 0 0 0 )}",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "aaae7baea6a6c7c4c2dfeb977efac326af552aaa" : {
+ "balance" : "1000000000000000000",
+ "nonce" : "0",
+ "code" : "{ (SUICIDE 0x095e7baea6a6c7c4c2dfeb977efac326af552d87) }",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "100000000",
+ "nonce" : "0",
+ "code" : "",
+ "storage": {}
+ }
+ },
+ "transaction" : {
+ "nonce" : "0",
+ "gasPrice" : "1",
+ "gasLimit" : "10000000",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "10",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "data" : ""
+ }
+ },
+
"refund_CallA" : {
"env" : {
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
diff --git a/stTransactionTestFiller.json b/stTransactionTestFiller.json
index 1299e6d9..b6ddbb2f 100644
--- a/stTransactionTestFiller.json
+++ b/stTransactionTestFiller.json
@@ -584,7 +584,7 @@
"pre" :
{
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "balance" : "100000",
+ "balance" : "180000",
"code" : "",
"nonce" : "0",
"storage" : {
@@ -612,7 +612,7 @@
"transaction" :
{
"data" : "",
- "gasLimit" : "50000",
+ "gasLimit" : "150000",
"gasPrice" : "1",
"nonce" : "",
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",