Skip to content

Commit

Permalink
Do not override nonce if forced to 0 (#282).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Sep 20, 2018
1 parent 25337d4 commit 8b2e572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8b2e572

Please sign in to comment.