File tree Expand file tree Collapse file tree 3 files changed +50
-80
lines changed
Expand file tree Collapse file tree 3 files changed +50
-80
lines changed Original file line number Diff line number Diff line change 2424 "@rsksmart/bridges-core-sdk" : " ^0.4.1" ,
2525 "@rsksmart/flyover-sdk" : " ^1.6.2" ,
2626 "@rsksmart/rlogin" : " ^1.6.1" ,
27- "@rsksmart/rlogin-ledger-provider" : " ^1.0.4 " ,
27+ "@rsksmart/rlogin-ledger-provider" : " ^1.0.5-alpha " ,
2828 "@rsksmart/rlogin-trezor-provider" : " ^1.0.4" ,
2929 "@rsksmart/rsk-precompiled-abis" : " ^6.0.0-ARROWHEAD" ,
3030 "@rsksmart/rsk-utils" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ export function getRloginInstance(features: Array<Feature>): RLogin {
5353 rpcUrls,
5454 supportedChains,
5555 } ;
56- // const ledgerFeature = features.find((feature) => feature.name === FeatureNames.WALLET_LEDGER);
57- // if (ledgerFeature?.value === constants.ENABLED
58- // && ledgerFeature.supportedBrowsers[currentBrowser.toLowerCase() as keyof SupportedBrowsers]) {
59- // rLoginOptions.providerOptions['custom-ledger'] = customLedgerProviderOptions;
60- // }
56+ const ledgerFeature = features . find ( ( feature ) => feature . name === FeatureNames . WALLET_LEDGER ) ;
57+ if ( ledgerFeature ?. value === constants . ENABLED
58+ && ledgerFeature . supportedBrowsers [ currentBrowser . toLowerCase ( ) as keyof SupportedBrowsers ] ) {
59+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
60+ // @ts -ignore
61+ rLoginOptions . providerOptions [ 'custom-ledger' ] = customLedgerProviderOptions ;
62+ }
6163 const trezorFeature = features . find ( ( feature ) => feature . name === FeatureNames . WALLET_TREZOR ) ;
6264 if ( trezorFeature ?. value === constants . ENABLED
6365 && trezorFeature . supportedBrowsers [ currentBrowser . toLowerCase ( ) as keyof SupportedBrowsers ] ) {
You can’t perform that action at this time.
0 commit comments