diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2018-03-15 22:16:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 22:16:03 +0800 |
commit | 5f257e3ecdb5a325c54550517743e3eae4a0191e (patch) | |
tree | 51732d6adfc24cf97aa44f3fa357845ae5ef206b | |
parent | 61185fe4b8762118fe9ee318539683b47cb04ed6 (diff) | |
parent | c58d59a3e9384a009e0937b51ac06a7694fcd6eb (diff) | |
download | dexon-tests-5f257e3ecdb5a325c54550517743e3eae4a0191e.tar.gz dexon-tests-5f257e3ecdb5a325c54550517743e3eae4a0191e.tar.zst dexon-tests-5f257e3ecdb5a325c54550517743e3eae4a0191e.zip |
Merge pull request #429 from ethereum/identity-to-bigger
Identity to bigger
4 files changed, 444 insertions, 0 deletions
diff --git a/BlockchainTests/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0.json b/BlockchainTests/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0.json new file mode 100644 index 000000000..4ba6a7b57 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0.json @@ -0,0 +1,218 @@ +{ + "identity_to_bigger_d0g0v0_Byzantium" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.7f06dbfd.Linux.g++", + "lllcversion" : "Version: 0.4.21-develop.2018.2.27+commit.2abc5be7.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0Filler.json", + "sourceHash" : "12c3061be8308b9385926241bb6ff6288755dbe8a7f09ab7c467bf78baf10267" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x3535353535353535353535353535353535353535", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0xa321", + "hash" : "0x87e002d59d2d9a49329269b3160f44d699f55e091e37a9af0bc2077a7cf65b14", + "mixHash" : "0x889fe47e9402581d61324ae7b49d3958af993240b2ae7af2c6a8d3a4be872da0", + "nonce" : "0x57f39783d34f1e07", + "number" : "0x01", + "parentHash" : "0xaeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60ab", + "receiptTrie" : "0x32031c46b0217eaf3f840d756c50595dc41651dfac8da63124c7acbd4d1f7522", + "stateRoot" : "0x155ffd01cba2cbf1ed9f135eb4cd9d368c02eebeef713e9b8e2ad4ec9b5f23be", + "timestamp" : "0x03e8", + "transactionsTrie" : "0xec6a57e4973f6e046d48544dbdefff8286397777cc2c8660adcdb38c6b0ddabd", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90260f901f8a0aeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60aba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347943535353535353535353535353535353535353535a0155ffd01cba2cbf1ed9f135eb4cd9d368c02eebeef713e9b8e2ad4ec9b5f23bea0ec6a57e4973f6e046d48544dbdefff8286397777cc2c8660adcdb38c6b0ddabda032031c46b0217eaf3f840d756c50595dc41651dfac8da63124c7acbd4d1f7522b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018405f5e10082a3218203e880a0889fe47e9402581d61324ae7b49d3958af993240b2ae7af2c6a8d3a4be872da08857f39783d34f1e07f862f860010183030d4094c305c901078781c232a2a521c2af7980f8385ee980801ba05082ac608c80290af68a18d44edf0526a3abc6ea3652ab46f63e8953eb813b57a06b1bc1f0b9eb8de1e19d159c9efb8607c2f24643982b112c98ade3e28af22722c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x030d40", + "gasPrice" : "0x01", + "nonce" : "0x01", + "r" : "0x5082ac608c80290af68a18d44edf0526a3abc6ea3652ab46f63e8953eb813b57", + "s" : "0x6b1bc1f0b9eb8de1e19d159c9efb8607c2f24643982b112c98ade3e28af22722", + "to" : "0xc305c901078781c232a2a521c2af7980f8385ee9", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x3535353535353535353535353535353535353535", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0x00", + "hash" : "0xaeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60ab", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x0a328ec2480d87b72eeadbca7bf8a9c19b728bde394ab1d258910f055ad57197", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901fbf901f6a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347943535353535353535353535353535353535353535a00a328ec2480d87b72eeadbca7bf8a9c19b728bde394ab1d258910f055ad57197a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808405f5e100808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x87e002d59d2d9a49329269b3160f44d699f55e091e37a9af0bc2077a7cf65b14", + "network" : "Byzantium", + "postState" : { + "0x3535353535353535353535353535353535353535" : { + "balance" : "0x29a2241af62ca321", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a7615af1", + "code" : "", + "nonce" : "0x02", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + "0x00" : "0x10" + } + } + }, + "pre" : { + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a761fe12", + "code" : "", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + } + } + } + }, + "identity_to_bigger_d0g0v0_Constantinople" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.7f06dbfd.Linux.g++", + "lllcversion" : "Version: 0.4.21-develop.2018.2.27+commit.2abc5be7.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0Filler.json", + "sourceHash" : "12c3061be8308b9385926241bb6ff6288755dbe8a7f09ab7c467bf78baf10267" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x3535353535353535353535353535353535353535", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0xa321", + "hash" : "0x51b4afef70f27e0a0a0c59abad13d85976dfbaa374424a03efb43c8101b72c19", + "mixHash" : "0x10d3455b05173a0590fb00cb4f4616daff3a480ac90ca9833ff70a4d45e4f6a4", + "nonce" : "0x12c65cd9f51a494c", + "number" : "0x01", + "parentHash" : "0xaeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60ab", + "receiptTrie" : "0x32031c46b0217eaf3f840d756c50595dc41651dfac8da63124c7acbd4d1f7522", + "stateRoot" : "0x155ffd01cba2cbf1ed9f135eb4cd9d368c02eebeef713e9b8e2ad4ec9b5f23be", + "timestamp" : "0x03e8", + "transactionsTrie" : "0xec6a57e4973f6e046d48544dbdefff8286397777cc2c8660adcdb38c6b0ddabd", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90260f901f8a0aeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60aba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347943535353535353535353535353535353535353535a0155ffd01cba2cbf1ed9f135eb4cd9d368c02eebeef713e9b8e2ad4ec9b5f23bea0ec6a57e4973f6e046d48544dbdefff8286397777cc2c8660adcdb38c6b0ddabda032031c46b0217eaf3f840d756c50595dc41651dfac8da63124c7acbd4d1f7522b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018405f5e10082a3218203e880a010d3455b05173a0590fb00cb4f4616daff3a480ac90ca9833ff70a4d45e4f6a48812c65cd9f51a494cf862f860010183030d4094c305c901078781c232a2a521c2af7980f8385ee980801ba05082ac608c80290af68a18d44edf0526a3abc6ea3652ab46f63e8953eb813b57a06b1bc1f0b9eb8de1e19d159c9efb8607c2f24643982b112c98ade3e28af22722c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x030d40", + "gasPrice" : "0x01", + "nonce" : "0x01", + "r" : "0x5082ac608c80290af68a18d44edf0526a3abc6ea3652ab46f63e8953eb813b57", + "s" : "0x6b1bc1f0b9eb8de1e19d159c9efb8607c2f24643982b112c98ade3e28af22722", + "to" : "0xc305c901078781c232a2a521c2af7980f8385ee9", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x3535353535353535353535353535353535353535", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0x00", + "hash" : "0xaeec4463424ffa725aab9e001056473a2b24fd7cf1e9b7e6058a4e12951b60ab", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x0a328ec2480d87b72eeadbca7bf8a9c19b728bde394ab1d258910f055ad57197", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901fbf901f6a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347943535353535353535353535353535353535353535a00a328ec2480d87b72eeadbca7bf8a9c19b728bde394ab1d258910f055ad57197a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808405f5e100808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x51b4afef70f27e0a0a0c59abad13d85976dfbaa374424a03efb43c8101b72c19", + "network" : "Constantinople", + "postState" : { + "0x3535353535353535353535353535353535353535" : { + "balance" : "0x29a2241af62ca321", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a7615af1", + "code" : "", + "nonce" : "0x02", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + "0x00" : "0x10" + } + } + }, + "pre" : { + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a761fe12", + "code" : "", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + } + } + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stPreCompiledContracts/identity_to_bigger.json b/GeneralStateTests/stPreCompiledContracts/identity_to_bigger.json new file mode 100644 index 000000000..4c3e5a177 --- /dev/null +++ b/GeneralStateTests/stPreCompiledContracts/identity_to_bigger.json @@ -0,0 +1,74 @@ +{ + "identity_to_bigger" : { + "_info" : { + "comment" : "have a call to e.g. identity built-in that specifies output size more than input size. Check that only the short amount is available with RETURNDATA. CALL is with 100000 as gas, address 4 as destination, 0 as value, 0 as in-offset, 16 as in-size, 16 as out-offset, 32 as out-size. The returndatasize should see 16.", + "filledwith" : "cpp-1.3.0+commit.7f06dbfd.Linux.g++", + "lllcversion" : "Version: 0.4.21-develop.2018.2.27+commit.2abc5be7.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stPreCompiledContracts/identity_to_biggerFiller.json", + "sourceHash" : "92044ac675c0e33da855ca2a072a91a81ffb5edaf922d623e24cf0d94ddcdb11" + }, + "env" : { + "currentCoinbase" : "0x3535353535353535353535353535353535353535", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x5f5e100", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0xc6745cf3cada515bbfb9573261c82547e0b8f9e3d5dd382e464704a84e47b5ad" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x61e3b1ed972c7c239e02994faa196eca7d4affb0570c801bbb7343b69479804d", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Constantinople" : [ + { + "hash" : "0x61e3b1ed972c7c239e02994faa196eca7d4affb0570c801bbb7343b69479804d", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a761fe12", + "code" : "", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x" + ], + "gasLimit" : [ + "0x030d40" + ], + "gasPrice" : "0x01", + "nonce" : "0x01", + "secretKey" : "0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d", + "to" : "0xc305c901078781c232a2a521c2af7980f8385ee9", + "value" : [ + "0x" + ] + } + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0Filler.json new file mode 100644 index 000000000..e11a23d3e --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts/identity_to_bigger_d0g0v0Filler.json @@ -0,0 +1,86 @@ +{ + "identity_to_bigger_d0g0v0" : { + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x05f5e100", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x030d40", + "gasPrice" : "0x01", + "nonce" : "0x01", + "r" : "0x5082ac608c80290af68a18d44edf0526a3abc6ea3652ab46f63e8953eb813b57", + "s" : "0x6b1bc1f0b9eb8de1e19d159c9efb8607c2f24643982b112c98ade3e28af22722", + "to" : "0xc305c901078781c232a2a521c2af7980f8385ee9", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Byzantium", + "result" : { + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "storage" : { + "0x00" : "0x10" + } + } + } + }, + { + "network" : "Constantinople", + "result" : { + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "storage" : { + "0x00" : "0x10" + } + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "3535353535353535353535353535353535353535", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" : { + "balance" : "0x0de0b6b3a761fe12", + "code" : "", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : { + "balance" : "0x00", + "code" : "0x7f112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00600052602060106010600060006004620186a0f1503d600055", + "nonce" : "0x21", + "storage" : { + } + } + } + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts/identity_to_biggerFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts/identity_to_biggerFiller.json new file mode 100644 index 000000000..1d90eda66 --- /dev/null +++ b/src/GeneralStateTestsFiller/stPreCompiledContracts/identity_to_biggerFiller.json @@ -0,0 +1,66 @@ +{ + "identity_to_bigger": { + "_info" : + { + "comment" : "have a call to e.g. identity built-in that specifies output size more than input size. Check that only the short amount is available with RETURNDATA. CALL is with 100000 as gas, address 4 as destination, 0 as value, 0 as in-offset, 16 as in-size, 16 as out-offset, 32 as out-size. The returndatasize should see 16." + }, + "env": { + "currentCoinbase": "0x3535353535353535353535353535353535353535", + "currentDifficulty": "0x020000", + "currentGasLimit": "0x5f5e100", + "currentNumber": "0x01", + "currentTimestamp": "1000", + "previousHash": "0xc6745cf3cada515bbfb9573261c82547e0b8f9e3d5dd382e464704a84e47b5ad" + }, + "pre": { + "82a978b3f5962a5b0957d9ee9eef472ee55b42f1": { + "balance": "999999999999868434", + "nonce": "1", + "code": "0x", + "storage": {} + }, + "0xc305c901078781c232a2a521c2af7980f8385ee9" : + { + "balance" : "0", + "nonce" : "33", + "storage" : + { + }, + "code" : "{(seq (MSTORE 0 0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00) (CALL 100000 4 0 0 16 16 32) (SSTORE 0 (RETURNDATASIZE)))}" + } + }, + "transaction": { + "data": [ "" ], + "gasLimit": [ "200000" ], + "gasPrice": "0x01", + "nonce": "0x01", + "secretKey": "0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d", + "to": "0xc305c901078781c232a2a521c2af7980f8385ee9", + "value": [ + "0x" + ] + }, + "expect": [ + { + "indexes": { + "data": 0, + "gas": -1, + "value": 0 + }, + "network": [ + ">=Byzantium" + ], + "result": { + "0xc305c901078781c232a2a521c2af7980f8385ee9" : + { + "balance" : "0", + "storage" : + { + "0x00" : "0x10" + } + } + } + } + ] + } +} |