Skip to content

Commit

Permalink
chore(currency): add TMeta generic to getDefaultList
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindavee committed Jul 24, 2023
1 parent 08fb3dd commit f835689
Show file tree
Hide file tree
Showing 2 changed files with 21,082 additions and 22,338 deletions.
4 changes: 2 additions & 2 deletions packages/currency/src/currencyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class CurrencyManager<TMeta = unknown> implements ICurrencyManager<TMeta>
* - NEAR, YEL, ZIL, BTC
* - ETH-rinkeby, FAU-rinkeby, CTBK-rinkeby
*/
static getDefaultList(): CurrencyDefinition[] {
static getDefaultList<TMeta = unknown>(): CurrencyDefinition<TMeta>[] {
const isoCurrencies: CurrencyInput[] = iso4217.map((cc) => ({
decimals: cc.digits,
name: cc.currency,
Expand All @@ -306,7 +306,7 @@ export class CurrencyManager<TMeta = unknown> implements ICurrencyManager<TMeta>
.concat(erc777Currencies)
.concat(eth)
.concat(btc)
.map(CurrencyManager.fromInput);
.map(CurrencyManager.fromInput<TMeta>);
}

/**
Expand Down
Loading

0 comments on commit f835689

Please sign in to comment.