Skip to content

Commit 7972d81

Browse files
Redidacovefjl
authored andcommitted
added authlist type and applied suggestion
1 parent c92a5d5 commit 7972d81

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/schemas/transaction.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Transaction7702Signed:
1414
- accessList
1515
- blobVersionedHashes
1616
- chainId
17-
- authorization list
17+
- authorizationlist
1818
properties:
1919
type:
2020
title: type
@@ -60,15 +60,21 @@ Transaction7702Signed:
6060
description: Chain ID that this transaction is valid on.
6161
$ref: '#/components/schemas/uint'
6262
authorizationList:
63-
type: object
63+
title: authorizationList
64+
$ref: '#/components/schemas/AuthorizationList'
65+
AuthorizationList:
66+
title: Authorization List
67+
description: List of authorizations for the transaction.
68+
type: array
69+
items:
6470
title: Authorizations List
6571
chainId:
6672
title: chainId
67-
description: Chain ID that this transaction is valid on.
73+
description: Chain ID on which this transaction is valid.
6874
$ref: '#/components/schemas/uint'
6975
nonce:
7076
title: nonce
71-
$ref: '#/components/schemas/uint64'
77+
$ref: '#/components/schemas/uint'
7278
address:
7379
$ref: '#/components/schemas/address'
7480
yParity:
@@ -409,6 +415,7 @@ TransactionLegacySigned:
409415
$ref: '#/components/schemas/uint'
410416
TransactionSigned:
411417
oneOf:
418+
- $ref: '#/components/schemas/Transaction7702Signed'
412419
- $ref: '#/components/schemas/Transaction4844Signed'
413420
- $ref: '#/components/schemas/Transaction1559Signed'
414421
- $ref: '#/components/schemas/Transaction2930Signed'

0 commit comments

Comments
 (0)