Skip to content

Commit

Permalink
Use generic tx for eth_sign + eth_sendtransaction and add from
Browse files Browse the repository at this point in the history
…field (#290)

* use generic tx for eth_sign + eth_sendtransaction and add from field

* remove transaction with sender as it is no longer used
  • Loading branch information
lightclient authored Aug 11, 2022
1 parent 53c28e1 commit 5b2f1f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/eth/sign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Transaction
required: true
schema:
$ref: '#/components/schemas/TransactionWithSender'
$ref: '#/components/schemas/GenericTransaction'
result:
name: Encoded transaction
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/eth/submit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: Transaction
required: true
schema:
$ref: '#/components/schemas/TransactionWithSender'
$ref: '#/components/schemas/GenericTransaction'
result:
name: Transaction hash
schema:
Expand Down
14 changes: 3 additions & 11 deletions src/schemas/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ AccessList:
type: array
items:
$ref: '#/components/schemas/AccessListEntry'
TransactionWithSender:
title: Transaction object with sender
type: object
allOf:
- required:
- from
properties:
from:
title: from
$ref: '#/components/schemas/address'
- $ref: '#/components/schemas/TransactionUnsigned'
Transaction1559Unsigned:
type: object
title: EIP-1559 transaction.
Expand Down Expand Up @@ -265,6 +254,9 @@ GenericTransaction:
to:
title: to address
$ref: '#/components/schemas/address'
from:
title: from address
$ref: '#/components/schemas/address'
gas:
title: gas limit
$ref: '#/components/schemas/uint'
Expand Down

0 comments on commit 5b2f1f5

Please sign in to comment.