@@ -238,7 +238,7 @@ export class NTT {
238
238
const releaseIx : TransactionInstruction = await this . createReleaseOutboundInstruction ( {
239
239
payer : args . payer . publicKey ,
240
240
outboxItem : outboxItem . publicKey ,
241
- revertOnDelay : ! args . shouldQueue
241
+ revertWhenNotReady : ! args . shouldQueue
242
242
} )
243
243
244
244
const signers = [ args . payer , args . fromAuthority , outboxItem ]
@@ -379,13 +379,13 @@ export class NTT {
379
379
async createReleaseOutboundInstruction ( args : {
380
380
payer : PublicKey
381
381
outboxItem : PublicKey
382
- revertOnDelay : boolean
382
+ revertWhenNotReady : boolean
383
383
} ) : Promise < TransactionInstruction > {
384
384
const whAccs = getWormholeDerivedAccounts ( this . program . programId , this . wormholeId )
385
385
386
386
return await this . program . methods
387
387
. releaseWormholeOutbound ( {
388
- revertOnDelay : args . revertOnDelay
388
+ revertWhenNotReady : args . revertWhenNotReady
389
389
} )
390
390
. accounts ( {
391
391
payer : args . payer ,
@@ -407,7 +407,7 @@ export class NTT {
407
407
async releaseOutbound ( args : {
408
408
payer : Keypair
409
409
outboxItem : PublicKey
410
- revertOnDelay : boolean
410
+ revertWhenNotReady : boolean
411
411
config ?: Config
412
412
} ) {
413
413
if ( await this . isPaused ( ) ) {
@@ -432,7 +432,7 @@ export class NTT {
432
432
payer : PublicKey
433
433
chain : ChainName | ChainId
434
434
nttMessage : NttMessage
435
- revertOnDelay : boolean
435
+ revertWhenNotReady : boolean
436
436
recipient ?: PublicKey
437
437
config ?: Config
438
438
} ) : Promise < TransactionInstruction > {
@@ -449,7 +449,7 @@ export class NTT {
449
449
450
450
return await this . program . methods
451
451
. releaseInboundMint ( {
452
- revertOnDelay : args . revertOnDelay
452
+ revertWhenNotReady : args . revertWhenNotReady
453
453
} )
454
454
. accounts ( {
455
455
common : {
@@ -468,7 +468,7 @@ export class NTT {
468
468
payer : Keypair
469
469
chain : ChainName | ChainId
470
470
nttMessage : NttMessage
471
- revertOnDelay : boolean
471
+ revertWhenNotReady : boolean
472
472
config ?: Config
473
473
} ) : Promise < void > {
474
474
if ( await this . isPaused ( ) ) {
@@ -491,7 +491,7 @@ export class NTT {
491
491
payer : PublicKey
492
492
chain : ChainName | ChainId
493
493
nttMessage : NttMessage
494
- revertOnDelay : boolean
494
+ revertWhenNotReady : boolean
495
495
recipient ?: PublicKey
496
496
config ?: Config
497
497
} ) : Promise < TransactionInstruction > {
@@ -508,7 +508,7 @@ export class NTT {
508
508
509
509
return await this . program . methods
510
510
. releaseInboundUnlock ( {
511
- revertOnDelay : args . revertOnDelay
511
+ revertWhenNotReady : args . revertWhenNotReady
512
512
} )
513
513
. accounts ( {
514
514
common : {
@@ -528,7 +528,7 @@ export class NTT {
528
528
payer : Keypair
529
529
chain : ChainName | ChainId
530
530
nttMessage : NttMessage
531
- revertOnDelay : boolean
531
+ revertWhenNotReady : boolean
532
532
config ?: Config
533
533
} ) : Promise < void > {
534
534
if ( await this . isPaused ( ) ) {
@@ -747,7 +747,7 @@ export class NTT {
747
747
// In case the redeemed amount exceeds the remaining inbound rate limit capacity,
748
748
// the transaction gets delayed. If this happens, the second instruction will not actually
749
749
// be able to release the transfer yet.
750
- // To make sure the transaction still succeeds, we set revertOnDelay to false, which will
750
+ // To make sure the transaction still succeeds, we set revertWhenNotReady to false, which will
751
751
// just make the second instruction a no-op in case the transfer is delayed.
752
752
753
753
const tx = new Transaction ( )
@@ -760,7 +760,7 @@ export class NTT {
760
760
nttMessage,
761
761
recipient : new PublicKey ( nttMessage . payload . recipientAddress . toUint8Array ( ) ) ,
762
762
chain : chainId ,
763
- revertOnDelay : false ,
763
+ revertWhenNotReady : false ,
764
764
config : config
765
765
}
766
766
0 commit comments