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:
parent
4f9fc8014a
commit
d249da77d7
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user