Skip to content

Commit

Permalink
Handle the case of nonce=0 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
area committed Sep 18, 2023
1 parent b2c8515 commit cca9cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reputation-miner/ReputationMinerClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ class ReputationMinerClient {

// Submit hash
let submitRootHashTx = await this._miner.submitRootHash(entryIndex);
if (!submitRootHashTx.nonce) {
if (!Object.prototype.hasOwnProperty.call(submitRootHashTx, "nonce")) {
// Assume we've been given back the submitRootHashTx hash.
submitRootHashTx = await this._miner.realProvider.getTransaction(submitRootHashTx);
}
Expand Down

0 comments on commit cca9cd9

Please sign in to comment.