From cca9cd911c40999f4c29f75a8cad8de789cfb162 Mon Sep 17 00:00:00 2001 From: Alex Rea Date: Mon, 18 Sep 2023 10:40:33 +0100 Subject: [PATCH] Handle the case of nonce=0 correctly --- packages/reputation-miner/ReputationMinerClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reputation-miner/ReputationMinerClient.js b/packages/reputation-miner/ReputationMinerClient.js index a2bef55cf2..4ee8192bbb 100644 --- a/packages/reputation-miner/ReputationMinerClient.js +++ b/packages/reputation-miner/ReputationMinerClient.js @@ -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); }