Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
This no longer needs the 0x prefix (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed Jul 15, 2021
1 parent 7e2f9cf commit 1c867f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subproviders/nonce-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ NonceTrackerSubprovider.prototype.handleRequest = function(payload, next, end){
var rawData = Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex')
const tx = TransactionFactory.fromSerializedData(rawData)
// extract address
var address = '0x'+tx.getSenderAddress().toString('hex').toLowerCase()
var address = tx.getSenderAddress().toString('hex').toLowerCase()
// extract nonce and increment
var nonce = ethUtil.bufferToInt(tx.nonce)
nonce++
Expand Down

0 comments on commit 1c867f9

Please sign in to comment.