From 590888b53b3b9550e0f9451356861f36d4ec4ace Mon Sep 17 00:00:00 2001 From: pgherveou Date: Fri, 31 May 2024 09:34:04 +0200 Subject: [PATCH 1/2] 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)` --- src/schemas/transaction.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/schemas/transaction.yaml b/src/schemas/transaction.yaml index 52a9b5928..c95a2838a 100644 --- a/src/schemas/transaction.yaml +++ b/src/schemas/transaction.yaml @@ -17,7 +17,8 @@ Transaction4844Unsigned: properties: type: title: type - $ref: '#/components/schemas/byte' + type: string + pattern: ^0x3$ nonce: title: nonce $ref: '#/components/schemas/uint' From 0805683795f8f24acd713200a97c9f81bd54ee00 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Tue, 11 Jun 2024 10:07:22 +0200 Subject: [PATCH 2/2] 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}...]]...] --- src/schemas/transaction.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/schemas/transaction.yaml b/src/schemas/transaction.yaml index c95a2838a..8134fd58b 100644 --- a/src/schemas/transaction.yaml +++ b/src/schemas/transaction.yaml @@ -64,6 +64,9 @@ AccessListEntry: title: Access list entry type: object additionalProperties: false + required: + - address + - storageKeys properties: address: $ref: '#/components/schemas/address'