Skip to content

Commit

Permalink
Apply fixes on eth_getStorage
Browse files Browse the repository at this point in the history
Apply fixes on engine_forkchoiceUpdated
  • Loading branch information
canepat committed Jun 18, 2024
1 parent 3ae3d29 commit 0502b44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
15 changes: 12 additions & 3 deletions src/engine/openrpc/methods/forkchoice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
- name: Payload attributes
required: false
schema:
$ref: '#/components/schemas/PayloadAttributesV1'
oneOf:
- title: No payload attributes (null)
type: 'null'
- $ref: '#/components/schemas/PayloadAttributesV1'
result:
name: Response object
schema:
Expand Down Expand Up @@ -55,7 +58,10 @@
- name: Payload attributes
required: false
schema:
$ref: '#/components/schemas/PayloadAttributesV2'
oneOf:
- title: No payload attributes (null)
type: 'null'
- $ref: '#/components/schemas/PayloadAttributesV2'
result:
name: Response object
schema:
Expand Down Expand Up @@ -108,7 +114,10 @@
- name: Payload attributes
required: false
schema:
$ref: '#/components/schemas/PayloadAttributesV3'
oneOf:
- title: No payload attributes (null)
type: 'null'
- $ref: '#/components/schemas/PayloadAttributesV3'
result:
name: Response object
schema:
Expand Down
4 changes: 2 additions & 2 deletions src/eth/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
- name: Storage slot
required: true
schema:
$ref: '#/components/schemas/uint256'
$ref: '#/components/schemas/bytesMax32'
- name: Block
required: true
schema:
$ref: '#/components/schemas/BlockNumberOrTagOrHash'
result:
name: Value
schema:
$ref: '#/components/schemas/bytes'
$ref: '#/components/schemas/bytes32'
- name: eth_getTransactionCount
summary: Returns the number of transactions sent from an address.
params:
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/base-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ uint:
uint64:
title: hex encoded 64 bit unsigned integer
type: string
pattern: ^0x([1-9a-f]+[0-9a-f]{0,15})|0$
pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$
uint256:
title: hex encoded 256 bit unsigned integer
type: string
pattern: ^0x([1-9a-f]+[0-9a-f]{0,31})|0$
pattern: ^0x([1-9a-f]+[0-9a-f]{0,63})|0$
hash32:
title: 32 byte hex value
type: string
Expand Down

0 comments on commit 0502b44

Please sign in to comment.