You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,7 +13,7 @@ export default class TransactionFactory {
13
13
/**
14
14
* Create a transaction from a `txData` object
15
15
*
16
-
* @param txData - The transaction data. The `type` field will determine which transaction type is returned (if undefined, create a Transaction)
16
+
* @param txData - The transaction data. The `type` field will determine which transaction type is returned (if undefined, creates a legacy transaction)
17
17
* @param txOptions - Options to pass on to the constructor of the transaction
18
18
*/
19
19
publicstaticfromTxData(
@@ -22,7 +22,7 @@ export default class TransactionFactory {
@@ -34,8 +34,7 @@ export default class TransactionFactory {
34
34
}
35
35
36
36
/**
37
-
* This method tries to decode `raw` data. It is somewhat equivalent to `fromRlpSerializedTx`.
38
-
* However, it could be that the data is not directly RLP-encoded (it is a Typed Transaction)
37
+
* This method tries to decode `raw` data. It is somewhat equivalent to `fromSerializedTx`, however it could be that the data is not directly RLP-encoded (it is a Typed Transaction)
39
38
*
40
39
* @param rawData - The raw data buffer
41
40
* @param txOptions - The transaction options
@@ -72,7 +71,7 @@ export default class TransactionFactory {
72
71
/**
73
72
* When decoding a BlockBody, in the transactions field, a field is either:
74
73
* A Buffer (a TypedTransaction - encoded as TransactionType || rlp(TransactionPayload))
75
-
* A Buffer[] (Transaction)
74
+
* A Buffer[] (Legacy Transaction)
76
75
* This method returns the right transaction.
77
76
*
78
77
* @param rawData - Either a Buffer or a Buffer[]
@@ -82,7 +81,7 @@ export default class TransactionFactory {
0 commit comments