File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,12 @@ export class OpenPaymentsService {
341
341
} )
342
342
343
343
await this . initClient ( walletAddress . id )
344
- await this . completeGrant ( amount , walletAddress , recurring )
344
+ await this . completeGrant (
345
+ amount ,
346
+ walletAddress ,
347
+ recurring ,
348
+ InteractionIntent . CONNECT
349
+ )
345
350
346
351
await this . storage . set ( {
347
352
walletAddress,
@@ -359,7 +364,12 @@ export class OpenPaymentsService {
359
364
'recurringGrant'
360
365
] )
361
366
362
- await this . completeGrant ( amount , walletAddress ! , recurring )
367
+ await this . completeGrant (
368
+ amount ,
369
+ walletAddress ! ,
370
+ recurring ,
371
+ InteractionIntent . FUNDS
372
+ )
363
373
364
374
// cancel existing grants of same type, if any
365
375
if ( grants . oneTimeGrant && ! recurring ) {
@@ -375,7 +385,7 @@ export class OpenPaymentsService {
375
385
amount : string ,
376
386
walletAddress : WalletAddress ,
377
387
recurring : boolean ,
378
- intent : InteractionIntent = InteractionIntent . CONNECT
388
+ intent : InteractionIntent
379
389
) : Promise < GrantDetails > {
380
390
const transformedAmount = toAmount ( {
381
391
value : amount ,
You can’t perform that action at this time.
0 commit comments