Skip to content

Commit

Permalink
Merge pull request blockchain-certificates#222 from davidlj95/fix-mis…
Browse files Browse the repository at this point in the history
…sing-args-verifier-error

fix(error): VerifierError constructor missed first argument
  • Loading branch information
raiseandfall authored Jul 24, 2019
2 parents 9e4f730 + 8448577 commit 2de2aa0
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 2de2aa0

Please sign in to comment.