Skip to content

Commit f6a6f52

Browse files
authored
Fix some types in transaction schema (#552)
* Fix transaction type for EIP-4844 transaction. According to https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4844.md The type should be `Bytes1(0x03)` * Fix missing required fields in AccessListEntry According to https://eips.ethereum.org/EIPS/eip-2930 > For the transaction to be valid, accessList must be of type [[{20 bytes}, [{32 bytes}...]]...]
1 parent b05b8e4 commit f6a6f52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/schemas/transaction.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Transaction4844Unsigned:
1717
properties:
1818
type:
1919
title: type
20-
$ref: '#/components/schemas/byte'
20+
type: string
21+
pattern: ^0x3$
2122
nonce:
2223
title: nonce
2324
$ref: '#/components/schemas/uint'
@@ -63,6 +64,9 @@ AccessListEntry:
6364
title: Access list entry
6465
type: object
6566
additionalProperties: false
67+
required:
68+
- address
69+
- storageKeys
6670
properties:
6771
address:
6872
$ref: '#/components/schemas/address'

0 commit comments

Comments
 (0)