aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-10-25 23:12:10 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-10-25 23:12:10 +0800
commite3e6e95ced0f9c7a1724e5b5ebd0465443f37d13 (patch)
tree6ebc68b79b984865ae1db672117229039943b818 /src/GeneralStateTestsFiller
parent2935f962c4b8492aaa67e9ff9238fbd913b8cf7c (diff)
downloadtangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar.gz
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar.bz2
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar.lz
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar.xz
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.tar.zst
tangerine-tests-e3e6e95ced0f9c7a1724e5b5ebd0465443f37d13.zip
Add a test for checking RETURNDATASIZE after a modexp with modsize = 1
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/modexp_modsize0_returndatasizeFiller.json27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/GeneralStateTestsFiller/stReturnDataTest/modexp_modsize0_returndatasizeFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/modexp_modsize0_returndatasizeFiller.json
index e58061a16..ae477b273 100644
--- a/src/GeneralStateTestsFiller/stReturnDataTest/modexp_modsize0_returndatasizeFiller.json
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/modexp_modsize0_returndatasizeFiller.json
@@ -28,7 +28,7 @@
},
{
"indexes" : {
- "data" : -1,
+ "data" : 0,
"gas" : 0,
"value" : -1
},
@@ -42,6 +42,23 @@
}
}
}
+ },
+ {
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "1000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x00",
+ "0x03" : "0x01"
+ }
+ }
+ }
}
],
"pre" : {
@@ -63,13 +80,15 @@
},
"transaction" : {
"// data" : [
- "modlength zero"
+ "modlength zero",
+ "modlength one"
],
"data" : [
-"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000101"
+ "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000101",
+ "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001010101"
],
"gasLimit" : [
- "100000000", "90000", "110000", "200000"
+ "100000000"
],
"gasPrice" : "1",
"nonce" : "0",