Skip to content

Commit

Permalink
Fix some types in transaction schema (#552)
Browse files Browse the repository at this point in the history
* 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}...]]...]
  • Loading branch information
pgherveou authored Dec 18, 2024
1 parent b05b8e4 commit f6a6f52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Transaction4844Unsigned:
properties:
type:
title: type
$ref: '#/components/schemas/byte'
type: string
pattern: ^0x3$
nonce:
title: nonce
$ref: '#/components/schemas/uint'
Expand Down Expand Up @@ -63,6 +64,9 @@ AccessListEntry:
title: Access list entry
type: object
additionalProperties: false
required:
- address
- storageKeys
properties:
address:
$ref: '#/components/schemas/address'
Expand Down

0 comments on commit f6a6f52

Please sign in to comment.