diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-07-04 21:48:14 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-07-04 21:48:14 +0800 |
commit | 24dd562b3556d736f3083a9a3ea1db9286cd597d (patch) | |
tree | f5aff915e8947670bb26e8cf39bf97a23a15c470 /src/GeneralStateTestsFiller | |
parent | f1de8c3b7fa2c2c0aa281b6b3a1ad7010356c5ff (diff) | |
download | tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar.gz tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar.bz2 tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar.lz tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar.xz tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.tar.zst tangerine-tests-24dd562b3556d736f3083a9a3ea1db9286cd597d.zip |
Price calculation when exp length > 256, and the first word of exponent is zero
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r-- | src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json index 4074f49a1..842adfc4a 100644 --- a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json +++ b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json @@ -107,7 +107,7 @@ }, { "indexes" : { - "data" : [16], + "data" : [16,27], "gas" : -1, "value" : -1 }, @@ -179,7 +179,8 @@ "21,21,22,23 - Non-zero length exp & mod, but passed data has only base and part of exp / only base", "24 - Non-zero length base & exp & mod and no values in input data - interpreted as all zeroes", "25 - Price calculation when baseLength > modLength", - "26 - bigint_expmod precompiled contract returns 1 for 0 ^ 0 mod 100" + "26 - bigint_expmod precompiled contract returns 1 for 0 ^ 0 mod 100", + "27 - 02 ** 03 % 06, but exp with 256 bytes of zero in front." ], "data" : [ "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002003fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", @@ -208,7 +209,8 @@ "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000202", "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002", "0x000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001001001010010", -"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000064" +"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000064", +"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030006" ], "gasLimit" : [ "100000000" |