Skip to content

Commit 5b2f1f5

Browse files
authored
Use generic tx for eth_sign + eth_sendtransaction and add from field (#290)
* use generic tx for eth_sign + eth_sendtransaction and add from field * remove transaction with sender as it is no longer used
1 parent 53c28e1 commit 5b2f1f5

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

src/eth/sign.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- name: Transaction
2020
required: true
2121
schema:
22-
$ref: '#/components/schemas/TransactionWithSender'
22+
$ref: '#/components/schemas/GenericTransaction'
2323
result:
2424
name: Encoded transaction
2525
schema:

src/eth/submit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- name: Transaction
55
required: true
66
schema:
7-
$ref: '#/components/schemas/TransactionWithSender'
7+
$ref: '#/components/schemas/GenericTransaction'
88
result:
99
name: Transaction hash
1010
schema:

src/schemas/transaction.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ AccessList:
1313
type: array
1414
items:
1515
$ref: '#/components/schemas/AccessListEntry'
16-
TransactionWithSender:
17-
title: Transaction object with sender
18-
type: object
19-
allOf:
20-
- required:
21-
- from
22-
properties:
23-
from:
24-
title: from
25-
$ref: '#/components/schemas/address'
26-
- $ref: '#/components/schemas/TransactionUnsigned'
2716
Transaction1559Unsigned:
2817
type: object
2918
title: EIP-1559 transaction.
@@ -265,6 +254,9 @@ GenericTransaction:
265254
to:
266255
title: to address
267256
$ref: '#/components/schemas/address'
257+
from:
258+
title: from address
259+
$ref: '#/components/schemas/address'
268260
gas:
269261
title: gas limit
270262
$ref: '#/components/schemas/uint'

0 commit comments

Comments
 (0)