Skip to content

Commit cca9cd9

Browse files
committed
Handle the case of nonce=0 correctly
1 parent b2c8515 commit cca9cd9

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
@@ -746,7 +746,7 @@ class ReputationMinerClient {
746746

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

0 commit comments

Comments
 (0)