Skip to content

Commit

Permalink
Always return a transaction type for pending transactions (hyperledge…
Browse files Browse the repository at this point in the history
…r#4364)

* always return a transaction type for pending transactions

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
  • Loading branch information
daniellehrner authored Oct 11, 2022
1 parent 7a2db24 commit 4b20e77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

### Bug Fixes
- Corrects emission of blockadded events when rewinding during a re-org. Fix for [#4495](https://github.com/hyperledger/besu/issues/4495)
-
- Always return a transaction type for pending transactions [#4364](https://github.com/hyperledger/besu/pull/4364)

### Download Links


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ public class TransactionCompleteResult implements TransactionResult {
private final String raw;
private final String to;
private final String transactionIndex;

@JsonInclude(JsonInclude.Include.NON_NULL)
private final String type;

private final String value;
private final String v;
private final String r;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ public class TransactionPendingResult implements TransactionResult {
private final String publicKey;
private final String raw;
private final String to;

@JsonInclude(JsonInclude.Include.NON_NULL)
private final String type;

private final String value;
private final String v;
private final String r;
Expand All @@ -97,7 +94,7 @@ public TransactionPendingResult(final Transaction transaction) {
this.to = transaction.getTo().map(Address::toHexString).orElse(null);
this.type =
transactionType.equals(TransactionType.FRONTIER)
? null
? Quantity.create(0)
: Quantity.create(transactionType.getSerializedType());
this.value = Quantity.create(transaction.getValue());
this.v = Quantity.create(transaction.getV());
Expand Down

0 comments on commit 4b20e77

Please sign in to comment.