Skip to content

Commit

Permalink
Removed superfluous parameters for internal transaction functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 24, 2023
1 parent 076edad commit e848978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src.ts/transaction/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function _serializeLegacy(tx: Transaction, sig?: Signature): string {
return encodeRlp(fields);
}

function _parseEipSignature(tx: TransactionLike, fields: Array<string>, serialize: (tx: TransactionLike) => string): void {
function _parseEipSignature(tx: TransactionLike, fields: Array<string>): void {
let yParity: number;
try {
yParity = handleNumber(fields[0], "yParity");
Expand Down Expand Up @@ -281,7 +281,7 @@ function _parseEip1559(data: Uint8Array): TransactionLike {

tx.hash = keccak256(data);

_parseEipSignature(tx, fields.slice(9), _serializeEip1559);
_parseEipSignature(tx, fields.slice(9));

return tx;
}
Expand Down Expand Up @@ -331,7 +331,7 @@ function _parseEip2930(data: Uint8Array): TransactionLike {

tx.hash = keccak256(data);

_parseEipSignature(tx, fields.slice(8), _serializeEip2930);
_parseEipSignature(tx, fields.slice(8));

return tx;
}
Expand Down

0 comments on commit e848978

Please sign in to comment.