aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2017-07-05 21:32:29 +0800
committerGitHub <noreply@github.com>2017-07-05 21:32:29 +0800
commit466c10373c324a8d024b32a4476778f3211d0c8a (patch)
treec1d7d6aeeb822e8588c0dd307d3034477c0a5c2f /src
parent17bf9ee3725160de5b61ad169cce407e3d81f402 (diff)
parent24dd562b3556d736f3083a9a3ea1db9286cd597d (diff)
downloadtangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar.gz
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar.bz2
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar.lz
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar.xz
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.tar.zst
tangerine-tests-466c10373c324a8d024b32a4476778f3211d0c8a.zip
Merge pull request #210 from ethereum/many_zeros_exp
Price calculation when exp length > 256, and the first word of exponent is zero
Diffstat (limited to 'src')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json8
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"