Skip to content

Commit 5add1f4

Browse files
committed
use uint256 for keys to disallow 0x empty
Signed-off-by: Sally MacFarlane <[email protected]>
1 parent 4008859 commit 5add1f4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/eth/state.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
- name: Storage slot
3434
required: true
3535
schema:
36-
# this used to require strict uint256, but usage of leading zero is commonplace,
37-
# so we can't disallow it.
38-
$ref: '#/components/schemas/bytesMax32'
36+
# usage of leading zero is commonplace, so we allow it.
37+
$ref: '#/components/schemas/uint256'
3938
- name: Block
4039
required: true
4140
schema:

src/schemas/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ StorageProof:
4747
properties:
4848
key:
4949
title: key
50-
$ref: '#/components/schemas/bytesMax32'
50+
$ref: '#/components/schemas/uint256'
5151
value:
5252
title: value
5353
$ref: '#/components/schemas/uint256'

0 commit comments

Comments
 (0)