Skip to content

Commit

Permalink
fix(error): VerifierError constructor missed first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Jul 8, 2019
1 parent c2679d5 commit 8448577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/explorers/bitcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 8448577

Please sign in to comment.