File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
create-invoice-form/src/lib
invoice-dashboard/src/lib Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2727 export let config: IConfig ;
2828 export let wagmiConfig: WagmiConfig ;
2929 export let requestNetwork: RequestNetwork | null | undefined ;
30- export let currencies: any ;
30+ export let currencies: CurrencyTypes . CurrencyInput [] = [] ;
3131
3232 let account: GetAccountReturnType ;
3333 let isTimeout = false ;
Original file line number Diff line number Diff line change 4646 export let config: IConfig ;
4747 export let wagmiConfig: WagmiConfig ;
4848 export let requestNetwork: RequestNetwork | null | undefined ;
49- export let currencies: any = [];
49+ export let currencies: CurrencyTypes . CurrencyInput [] = [];
5050
5151 let signer: ` 0x${string } ` | undefined ;
5252 let activeConfig = config ? config : defaultConfig ;
Original file line number Diff line number Diff line change 11import { CurrencyManager } from "@requestnetwork/currency" ;
2+ import { CurrencyTypes } from "@requestnetwork/types" ;
23
34const defaultCurrencyIds = [
45 "USD" ,
@@ -64,7 +65,7 @@ import { Types } from "@requestnetwork/request-client.js";
6465import { formattedCurrencyConversionPairs } from './currencyConversionPairs'
6566
6667export function initializeCurrencyManager (
67- customCurrencies : any [ ] = [ ]
68+ customCurrencies : CurrencyTypes . CurrencyInput [ ] = [ ]
6869) : CurrencyManager {
6970 let currenciesToUse : any [ ] ;
7071
@@ -113,7 +114,7 @@ export function initializeCurrencyManagerWithCurrencyIDS(
113114}
114115
115116export const getCurrencySupportedNetworksForConversion = ( currencyHash : string , currencyManager : any ) : ( string | undefined ) [ ] => {
116- return Object . keys ( currencyManager . conversionPairs ) . filter ( ( network ) =>
117+ return Object . keys ( currencyManager . conversionPairs ) . filter ( ( network ) =>
117118 currencyManager . conversionPairs [ network ] [ currencyHash ]
118119 ) ;
119120}
You can’t perform that action at this time.
0 commit comments