File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -257,21 +257,12 @@ export default class TransactionService extends Service {
257257 LogService . logTrace ( 'HWALLETCONNECT TransactionAdapter' ) ;
258258 return Injectable . resolve ( HederaWalletConnectTransactionAdapter ) ;
259259 case SupportedWallets . DFNS :
260- if ( ! Injectable . isWeb ( ) ) {
261- throw new InvalidWalletTypeError ( ) ;
262- }
263260 LogService . logTrace ( 'DFNS TransactionAdapter' ) ;
264261 return Injectable . resolve ( DFNSTransactionAdapter ) ;
265262 case SupportedWallets . FIREBLOCKS :
266- if ( ! Injectable . isWeb ( ) ) {
267- throw new InvalidWalletTypeError ( ) ;
268- }
269263 LogService . logTrace ( 'FIREBLOCKS TransactionAdapter' ) ;
270264 return Injectable . resolve ( FireblocksTransactionAdapter ) ;
271265 case SupportedWallets . AWSKMS :
272- if ( ! Injectable . isWeb ( ) ) {
273- throw new InvalidWalletTypeError ( ) ;
274- }
275266 LogService . logTrace ( 'AWSKMS TransactionAdapter' ) ;
276267 return Injectable . resolve ( AWSKMSTransactionAdapter ) ;
277268 default :
Original file line number Diff line number Diff line change @@ -1202,9 +1202,13 @@ export default class Injectable {
12021202
12031203 static registerTransactionAdapterInstances ( ) : TransactionAdapter [ ] {
12041204 const adapters : TransactionAdapter [ ] = [ ] ;
1205+ if ( this . isWeb ( ) ) {
1206+ adapters . push (
1207+ Injectable . resolve ( RPCTransactionAdapter ) ,
1208+ Injectable . resolve ( HederaWalletConnectTransactionAdapter ) ,
1209+ ) ;
1210+ }
12051211 adapters . push (
1206- Injectable . resolve ( RPCTransactionAdapter ) ,
1207- Injectable . resolve ( HederaWalletConnectTransactionAdapter ) ,
12081212 Injectable . resolve ( DFNSTransactionAdapter ) ,
12091213 Injectable . resolve ( FireblocksTransactionAdapter ) ,
12101214 Injectable . resolve ( AWSKMSTransactionAdapter ) ,
You can’t perform that action at this time.
0 commit comments