aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-02-17 21:49:35 +0800
committerDimitry <dimitry@ethereum.org>2018-02-17 21:49:35 +0800
commit5e3d39a3fad955681e9bb7e9fa910a24e1df5f88 (patch)
treeab35b8ccb08feb5f80beec673bba2c4b7cc93cb5
parentd2e8fbf7f096830e1be04a02577c1070fd8f7c06 (diff)
downloaddexon-tests-5e3d39a3fad955681e9bb7e9fa910a24e1df5f88.tar.gz
dexon-tests-5e3d39a3fad955681e9bb7e9fa910a24e1df5f88.tar.zst
dexon-tests-5e3d39a3fad955681e9bb7e9fa910a24e1df5f88.zip
allow decimal storage values in test fillers
-rw-r--r--JSONSchema/st-filler-schema.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/JSONSchema/st-filler-schema.json b/JSONSchema/st-filler-schema.json
index 35e160d55..a9e2831e2 100644
--- a/JSONSchema/st-filler-schema.json
+++ b/JSONSchema/st-filler-schema.json
@@ -88,6 +88,12 @@
{ "$ref": "#/definitions/ConfusedHexType" }
]
},
+ "PrefixedHexOrInteger": {
+ "anyOf": [
+ { "$ref": "#/definitions/IntegerString" },
+ { "$ref": "#/definitions/HexData" }
+ ]
+ },
"PreStateAccount": {
"type": "object",
"additionalproperties": true,
@@ -100,8 +106,8 @@
"additionalProperties": false,
"patternProperties": {
"^0x[0-9a-f]+": {
- "description": "storage key with 0x prefix, just the prefix `0x` is null and thus not permitted, a hex quantity is permitted. for the storage value, only hex data is permitted.",
- "$ref": "#/definitions/HexData"
+ "description": "storage key with 0x prefix, just the prefix `0x` is null and thus not permitted, a hex quantity is permitted. for the storage value, only hex data is permitted in filled test. Both decimal and hex allowed for the fillers.",
+ "$ref": "#/definitions/PrefixedHexOrInteger"
}
}
}