2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Do not override nonce if forced to 0 (#282).

This commit is contained in:
Richard Moore 2018-09-20 15:46:53 -04:00
parent 25337d4543
commit 8b2e57276f
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -177,7 +177,7 @@ function Contract(addressOrName, contractInterface, signerOrProvider) {
}
var noncePromise = null;
if (transaction.nonce) {
if (transaction.nonce != null) {
noncePromise = Promise.resolve(transaction.nonce)
} else if (signer.getTransactionCount) {
noncePromise = signer.getTransactionCount();