Skip to content

Commit

Permalink
chore(currency): add TMeta generic to getDefaultList (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindavee authored Jul 25, 2023
1 parent 08fb3dd commit d606fc7
Showing 1 changed file with 2 additions and 2 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

0 comments on commit d606fc7

Please sign in to comment.