Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from LedgerHQ/prefix-t
Browse files Browse the repository at this point in the history
prefix with a t for testnets
  • Loading branch information
gre authored May 29, 2018
2 parents e44cd52 + e44b19c commit 95e6834
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/data/cryptocurrencies.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//@flow
import type { CryptoCurrency, Unit } from "../types";

const makeTestnetUnit = u => ({
...u,
code: `𝚝${u.code}`
});

const bitcoinUnits: Unit[] = [
{
name: "bitcoin",
Expand Down Expand Up @@ -433,7 +438,7 @@ const cryptocurrenciesArray: CryptoCurrency[] = [
ticker: "BTC",
scheme: "testnet",
color: "#00ff00",
units: bitcoinUnits,
units: bitcoinUnits.map(makeTestnetUnit),
supportsSegwit: true,
isTestnetFor: "bitcoin"
},
Expand All @@ -444,7 +449,7 @@ const cryptocurrenciesArray: CryptoCurrency[] = [
ticker: "ETH",
scheme: "ethereum_testnet",
color: "#00ff00",
units: ethereumUnits,
units: ethereumUnits.map(makeTestnetUnit),
isTestnetFor: "ethereum"
}
];
Expand Down

0 comments on commit 95e6834

Please sign in to comment.