aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2017-09-07 23:53:29 +0800
committerGitHub <noreply@github.com>2017-09-07 23:53:29 +0800
commit64c441d8db35d6b8c84940e6c2cdcb77807c49aa (patch)
treedb54598ee5dbf387ad342c5c4d1957a85c576d8b /src
parentf72d3ba3b984a646cc40a6ec0a8f1181e5d2233b (diff)
parentf06a1241e7635720d62a69b8d1f21eb7fc8ccc1f (diff)
downloaddexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar.gz
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar.bz2
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar.lz
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar.xz
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.tar.zst
dexon-tests-64c441d8db35d6b8c84940e6c2cdcb77807c49aa.zip
Merge pull request #303 from ethereum/create-transaction-reverts
Add a Blockchaintest where create transaction fails for a REVERT inst…
Diffstat (limited to 'src')
-rw-r--r--src/BlockchainTestsFiller/bcValidBlockTest/createRevertFiller.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/bcValidBlockTest/createRevertFiller.json b/src/BlockchainTestsFiller/bcValidBlockTest/createRevertFiller.json
new file mode 100644
index 000000000..156342570
--- /dev/null
+++ b/src/BlockchainTestsFiller/bcValidBlockTest/createRevertFiller.json
@@ -0,0 +1,50 @@
+{
+ "createRevert" : {
+ "_info" : {
+ "comment" : "This test contains a create transaction that fails by REVERT in the init code. The focus 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" : [],
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "10000000000",
+ "nonce" : "0",
+ "code" : "",
+ "storage": {}
+ }
+ },
+ "blocks" : [
+ {
+ "transactions" : [
+ {
+ "data" : "0x60006000fd",
+ "gasLimit" : "50000",
+ "gasPrice" : "10",
+ "nonce" : "0",
+ "to" : "",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "value" : "10"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ]
+ }
+}