From 8b2e57276fa6e5fa983474127f5080331254ddeb Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 20 Sep 2018 15:46:53 -0400 Subject: [PATCH] Do not override nonce if forced to 0 (#282). --- contracts/contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contract.js b/contracts/contract.js index c06c83c3..741795ff 100644 --- a/contracts/contract.js +++ b/contracts/contract.js @@ -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();