1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

nonce-tracker - return nonce as integer

This commit is contained in:
kumavis 2017-07-18 13:59:56 -07:00
parent 4f9fc8014a
commit d249da77d7

View File

@ -30,7 +30,7 @@ class NonceTracker {
const nextNonce = baseCount + pendingCount const nextNonce = baseCount + pendingCount
assert(Number.isInteger(nextNonce), 'nonce-tracker - nextNonce is an integer') assert(Number.isInteger(nextNonce), 'nonce-tracker - nextNonce is an integer')
// return next nonce and release cb // return next nonce and release cb
return { nextNonce: '0x' + nextNonce.toString(16), releaseLock } return { nextNonce, releaseLock }
} }
async _getCurrentBlock () { async _getCurrentBlock () {