aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-09-05 00:55:53 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-09-05 00:55:53 +0800
commitba9a341f3cba853bb7528743aab26804a6c7d6db (patch)
tree3ae0de6e9a413ea1107e0a6816e551293ff2323f /src
parent8de686b445674c14c9b8df4d1edf189555158d6f (diff)
downloaddexon-tests-ba9a341f3cba853bb7528743aab26804a6c7d6db.tar.gz
dexon-tests-ba9a341f3cba853bb7528743aab26804a6c7d6db.tar.zst
dexon-tests-ba9a341f3cba853bb7528743aab26804a6c7d6db.zip
Add a test containing a call transaction that reverts
Diffstat (limited to 'src')
-rw-r--r--src/BlockchainTestsFiller/bcValidBlockTest/callRevertFiller.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/bcValidBlockTest/callRevertFiller.json b/src/BlockchainTestsFiller/bcValidBlockTest/callRevertFiller.json
new file mode 100644
index 000000000..5728744a8
--- /dev/null
+++ b/src/BlockchainTestsFiller/bcValidBlockTest/callRevertFiller.json
@@ -0,0 +1,65 @@
+{
+ "callRevert" : {
+ "_info" : {
+ "comment" : "This test contains a message call transaction that fails by REVERT. The interest is on the status code in the transaction receipt (though not specified in the expect section)."
+ },
+ "genesisBlockHeader" : {
+ "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
+ "difficulty" : "131072",
+ "extraData" : "0x42",
+ "gasLimit" : "3141592",
+ "gasUsed" : "0",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a",
+ "timestamp" : "0x54c98c81",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "10000000000"
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "10000000000",
+ "nonce" : "0",
+ "code" : "",
+ "storage": {}
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "10000000000",
+ "nonce" : "0",
+ "code" : "{ (REVERT 0 0) }",
+ "storage": {}
+ }
+ },
+ "blocks" : [
+ {
+ "transactions" : [
+ {
+ "data" : "",
+ "gasLimit" : "50000",
+ "gasPrice" : "10",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "10"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ]
+ }
+}