Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
src/coins.js: add isDash to isValidNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoAllmendinger committed Jan 8, 2020
1 parent 9556784 commit 4827e8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coins.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ function isZcash (network) {
const isValidNetwork = typeforce.oneOf(
isBitcoin,
isBitcoinCash,
isBitcoinSV,
isBitcoinGold,
isBitcoinSV,
isDash,
isLitecoin,
isZcash
)
Expand Down
4 changes: 4 additions & 0 deletions test/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ describe('networks', function () {
const network = networks[name]

describe(`networks.${name}`, function () {
it('is valid network', function () {
assert(coins.isValidNetwork(network))
})

it('has expected properties', function () {
assert.strictEqual(typeof network, 'object')
assert.strictEqual(typeof network.messagePrefix, 'string')
Expand Down

0 comments on commit 4827e8a

Please sign in to comment.