Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(Helpers): syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 17, 2018
1 parent 67cd2d9 commit fc9bbbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Helpers.bitcoincash = {
pubKeyHash: 0,
scriptHash: 5,
wif: 128
}
};

Helpers.toBitcoinCash = (address) => {
const { version, hash } = Bitcoin.address.fromBase58Check(address);
Expand All @@ -664,7 +664,7 @@ Helpers.toBitcoinCash = (address) => {
default:
throw new Error('toBitcoinCash: Address type not supported');
}
}
};

Helpers.fromBitcoinCash = (address) => {
const { hash, version } = cashaddress.decode(address);
Expand All @@ -676,7 +676,7 @@ Helpers.fromBitcoinCash = (address) => {
default:
throw new Error('fromBitcoinCash: Address type not supported');
}
}
};

// Helpers.bitcoincashtestnet = {
// messagePrefix: '\u0018Bitcoin Signed Message:\n',
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ describe('Helpers', () => {
});
});

fdescribe('Bitcoin cash address format', () => {
describe('Bitcoin cash address format', () => {
it('spec tests', () => {
const tests = [
['1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu', 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a'],
Expand Down

0 comments on commit fc9bbbd

Please sign in to comment.