From 78dbc922a4a2f0e159a20107462dbadb7967f663 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 13 Sep 2018 20:43:07 +0300 Subject: push32 without bytes at the end check gasUsage --- .../stSpecialTest/push32withoutByteFiller.json | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json (limited to 'src/GeneralStateTestsFiller/stSpecialTest') diff --git a/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json b/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json new file mode 100644 index 000000000..62284f0e5 --- /dev/null +++ b/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json @@ -0,0 +1,62 @@ +{ + "push32withoutByte" : { + "_info" : { + "comment" : "push expect 32 bytes. but we have only 10 byte" + }, + "env" : { + "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "3141592", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "999999999999978997", + "nonce" : "2" + } + } + } + ], + "pre" : { + "0dc02922f33e45537411b9f92a1dcc9750ba9932" : { + "balance" : "0", + "code" : "0x7f11223344556677889910", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "1", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "500000" + ], + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0dc02922f33e45537411b9f92a1dcc9750ba9932", + "value" : [ + "0" + ] + } + } +} -- cgit v1.2.3