TransactionResult: add v for blob and pending tx (#8196)

* add v for blob and pending tx

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* add v for blob and pending tx in tests

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* add v for blob tx in test

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Sally MacFarlane
2025-01-30 16:11:00 +10:00
committed by GitHub
parent 6af23ea024
commit 5ac3247d38
6 changed files with 9 additions and 3 deletions

View File

@@ -130,8 +130,9 @@ public class TransactionCompleteResult implements TransactionResult {
this.yParity = Quantity.create(transaction.getYParity());
this.v =
(transactionType == TransactionType.ACCESS_LIST
|| transactionType == TransactionType.EIP1559)
|| transactionType == TransactionType.EIP1559
|| transactionType == TransactionType.DELEGATE_CODE
|| transactionType == TransactionType.BLOB)
? Quantity.create(transaction.getYParity())
: null;
}

View File

@@ -115,7 +115,9 @@ public class TransactionPendingResult implements TransactionResult {
this.yParity = Quantity.create(transaction.getYParity());
this.v =
(transactionType == TransactionType.ACCESS_LIST
|| transactionType == TransactionType.EIP1559)
|| transactionType == TransactionType.EIP1559
|| transactionType == TransactionType.DELEGATE_CODE
|| transactionType == TransactionType.BLOB)
? Quantity.create(transaction.getYParity())
: null;
}

View File

@@ -52,6 +52,7 @@
"type": "0x3",
"value": "0x0",
"yParity": "0x0",
"v" : "0x0",
"r": "0x6ae0612cfda43a9b464b10b4881c6fc2e4c24533cf89bbe07934da65c3ae49ce",
"s": "0x125387aeb222ec51130cf99cbdabf24bd4a881914faed69f254e4a3f4bc507fc",
"blobVersionedHashes": [

View File

@@ -30,6 +30,7 @@
"type": "0x3",
"value": "0x0",
"yParity": "0x0",
"v" : "0x0",
"r": "0x6ae0612cfda43a9b464b10b4881c6fc2e4c24533cf89bbe07934da65c3ae49ce",
"s": "0x125387aeb222ec51130cf99cbdabf24bd4a881914faed69f254e4a3f4bc507fc",
"blobVersionedHashes": [

View File

@@ -30,6 +30,7 @@
"type": "0x3",
"value": "0x0",
"yParity": "0x0",
"v" : "0x0",
"r": "0x6ae0612cfda43a9b464b10b4881c6fc2e4c24533cf89bbe07934da65c3ae49ce",
"s": "0x125387aeb222ec51130cf99cbdabf24bd4a881914faed69f254e4a3f4bc507fc",
"blobVersionedHashes": [