Skip to content

Commit 1e75b3f

Browse files
areachmanie
authored andcommitted
Handle the case of nonce=0 correctly
1 parent 369cc02 commit 1e75b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reputation-miner/ReputationMinerClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ class ReputationMinerClient {
750750

751751
// Submit hash
752752
let submitRootHashTx = await this._miner.submitRootHash(entryIndex);
753-
if (!submitRootHashTx.nonce) {
753+
if (!Object.prototype.hasOwnProperty.call(submitRootHashTx, "nonce")) {
754754
// Assume we've been given back the submitRootHashTx hash.
755755
submitRootHashTx = await this._miner.realProvider.getTransaction(submitRootHashTx);
756756
}

0 commit comments

Comments
 (0)