aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-03-14 00:11:39 +0800
committerYoichi Hirai <i@yoichihirai.com>2018-03-14 00:17:02 +0800
commite0682a1f552e9162497e06a6c910ab574ed45975 (patch)
tree9fbe87c70022168b50b37086784c7efe80721688 /src/GeneralStateTestsFiller
parent61185fe4b8762118fe9ee318539683b47cb04ed6 (diff)
downloadtangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar.gz
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar.bz2
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar.lz
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar.xz
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.tar.zst
tangerine-tests-e0682a1f552e9162497e06a6c910ab574ed45975.zip
Add a filler for identity_to_bigger test
https://docs.google.com/spreadsheets/d/1xat7UI8GtB4ZGVdlK5_XQSHJZaMThi4SrlcL8XMZb5Q/edit#gid=1605675414&range=C41
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts/identity_to_biggerFiller.json66
1 files changed, 66 insertions, 0 deletions
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"
+ }
+ }
+ }
+ }
+ ]
+ }
+}