Skip to content

Commit

Permalink
Remove superfluous logging (#2995).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 20, 2022
1 parent a301297 commit ed7e6a5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/transactions/src.ts/index.ts
Expand Up @@ -342,9 +342,7 @@ function _parseEipSignature(tx: Transaction, fields: Array<string>, serialize: (
try {
const digest = keccak256(serialize(tx));
tx.from = recoverAddress(digest, { r: tx.r, s: tx.s, recoveryParam: tx.v });
} catch (error) {
console.log(error);
}
} catch (error) { }
}

function _parseEip1559(payload: Uint8Array): Transaction {
Expand Down Expand Up @@ -434,7 +432,7 @@ function _parse(rawTransaction: Uint8Array): Transaction {
tx.v = BigNumber.from(transaction[6]).toNumber();

} catch (error) {
console.log(error);
// @TODO: What makes snese to do? The v is too big
return tx;
}

Expand Down Expand Up @@ -466,9 +464,7 @@ function _parse(rawTransaction: Uint8Array): Transaction {
const digest = keccak256(RLP.encode(raw));
try {
tx.from = recoverAddress(digest, { r: hexlify(tx.r), s: hexlify(tx.s), recoveryParam: recoveryParam });
} catch (error) {
console.log(error);
}
} catch (error) { }

tx.hash = keccak256(rawTransaction);
}
Expand Down

0 comments on commit ed7e6a5

Please sign in to comment.