aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2017-04-25 19:13:17 +0800
committerDimitry <winsvega@mail.ru>2017-04-25 19:13:17 +0800
commitda0ac74f3652db88b1f15f68a4647350f3f540c3 (patch)
treeab2453ce3acf24f06045fc1e69a59937778ca782 /src
parent9e1f1f3dd7943eced26a7dca138b8f2c1f88c5f7 (diff)
downloaddexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar.gz
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar.bz2
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar.lz
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar.xz
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.tar.zst
dexon-tests-da0ac74f3652db88b1f15f68a4647350f3f540c3.zip
modexp tests
Diffstat (limited to 'src')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
index 7db520093..4074f49a1 100644
--- a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
+++ b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json
@@ -91,7 +91,7 @@
},
{
"indexes" : {
- "data" : [11, 14],
+ "data" : [11, 14, 25, 26],
"gas" : -1,
"value" : -1
},
@@ -177,7 +177,9 @@
"17 - 02**03 % 0006",
"18,19,20 - Non-zero length mod, but passed calldata has not enough total length",
"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"
+ "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"
],
"data" : [
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002003fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
@@ -204,7 +206,9 @@
"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002023003",
"0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020230",
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000202",
-"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002"
+"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002",
+"0x000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001001001010010",
+"0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000064"
],
"gasLimit" : [
"100000000"