From 8448577eb922ad32c4bf2478ded765e89d1b72aa Mon Sep 17 00:00:00 2001 From: David LJ Date: Mon, 8 Jul 2019 17:09:47 +0200 Subject: [PATCH] fix(error): VerifierError constructor missed first argument --- src/explorers/bitcoin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/explorers/bitcoin.js b/src/explorers/bitcoin.js index ad08cf145..5e2dadca0 100644 --- a/src/explorers/bitcoin.js +++ b/src/explorers/bitcoin.js @@ -60,7 +60,7 @@ export function getChainSoFetcher (transactionId, chain) { function parseBlockCypherResponse (jsonResponse) { if (jsonResponse.confirmations < CONFIG.MininumConfirmations) { - throw new VerifierError(getText('errors', 'parseBlockCypherResponse')); + throw new VerifierError(SUB_STEPS.fetchRemoteHash, getText('errors', 'parseBlockCypherResponse')); } const time = dateToUnixTimestamp(jsonResponse.received); const outputs = jsonResponse.outputs; @@ -80,7 +80,7 @@ function parseBlockCypherResponse (jsonResponse) { function parseChainSoResponse (jsonResponse) { if (jsonResponse.data.confirmations < CONFIG.MininumConfirmations) { - throw new VerifierError(getText('errors', 'parseChainSoResponse')); + throw new VerifierError(SUB_STEPS.fetchRemoteHash, getText('errors', 'parseChainSoResponse')); } const time = new Date(jsonResponse.data.time * 1000); const outputs = jsonResponse.data.outputs;