@@ -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 ( ) ) {
@@ -664,7 +664,7 @@ export class NTT {
664
664
665
665
return await this . program . methods . receiveWormholeMessage ( ) . accounts ( {
666
666
payer : args . payer ,
667
- config : { config : this . configAccountAddress ( ) } ,
667
+ config : { config : this . configAccountAddress ( ) } ,
668
668
peer : transceiverPeer ,
669
669
vaa : derivePostedVaaKey ( this . wormholeId , Buffer . from ( wormholeNTT . hash ) ) ,
670
670
transceiverMessage : this . transceiverMessageAccountAddress (
@@ -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,8 +760,7 @@ export class NTT {
760
760
nttMessage,
761
761
recipient : new PublicKey ( nttMessage . payload . recipientAddress . toUint8Array ( ) ) ,
762
762
chain : chainId ,
763
- revertOnDelay : false ,
764
- config : config
763
+ revertWhenNotReady : false
765
764
}
766
765
767
766
if ( config . mode . locking != null ) {
0 commit comments