Skip to content

Commit

Permalink
Replace bufferToInt with toNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Mar 31, 2021
1 parent fcda6cb commit 559f4e4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ export class TxPool {
// Temporary check that should be removed when transaction replacement is added
if (this._txWithNonceExists(tx)) {
throw new InvalidInputError(
`Transaction with nonce ${bufferToInt(
tx.nonce.toBuffer()
)} already exists in transaction pool`
`Transaction with nonce ${tx.nonce.toNumber()} already exists in transaction pool`
);
}

Expand Down

0 comments on commit 559f4e4

Please sign in to comment.