@@ -477,7 +477,7 @@ export class NTT {
477
477
payer : PublicKey
478
478
chain : ChainName | ChainId
479
479
nttMessage : NttMessage
480
- revertOnDelay : boolean
480
+ revertWhenNotReady : boolean
481
481
recipient ?: PublicKey
482
482
config ?: Config
483
483
} ) : Promise < TransactionInstruction > {
@@ -494,7 +494,7 @@ export class NTT {
494
494
495
495
return await this . program . methods
496
496
. releaseInboundMint ( {
497
- revertOnDelay : args . revertOnDelay
497
+ revertWhenNotReady : args . revertWhenNotReady
498
498
} )
499
499
. accounts ( {
500
500
common : {
@@ -513,7 +513,7 @@ export class NTT {
513
513
payer : Keypair
514
514
chain : ChainName | ChainId
515
515
nttMessage : NttMessage
516
- revertOnDelay : boolean
516
+ revertWhenNotReady : boolean
517
517
config ?: Config
518
518
} ) : Promise < void > {
519
519
if ( await this . isPaused ( ) ) {
@@ -536,7 +536,7 @@ export class NTT {
536
536
payer : PublicKey
537
537
chain : ChainName | ChainId
538
538
nttMessage : NttMessage
539
- revertOnDelay : boolean
539
+ revertWhenNotReady : boolean
540
540
recipient ?: PublicKey
541
541
config ?: Config
542
542
} ) : Promise < TransactionInstruction > {
@@ -553,7 +553,7 @@ export class NTT {
553
553
554
554
return await this . program . methods
555
555
. releaseInboundUnlock ( {
556
- revertOnDelay : args . revertOnDelay
556
+ revertWhenNotReady : args . revertWhenNotReady
557
557
} )
558
558
. accounts ( {
559
559
common : {
@@ -573,7 +573,7 @@ export class NTT {
573
573
payer : Keypair
574
574
chain : ChainName | ChainId
575
575
nttMessage : NttMessage
576
- revertOnDelay : boolean
576
+ revertWhenNotReady : boolean
577
577
config ?: Config
578
578
} ) : Promise < void > {
579
579
if ( await this . isPaused ( ) ) {
@@ -742,7 +742,7 @@ export class NTT {
742
742
743
743
return await this . program . methods . receiveWormholeMessage ( ) . accounts ( {
744
744
payer : args . payer ,
745
- config : { config : this . configAccountAddress ( ) } ,
745
+ config : { config : this . configAccountAddress ( ) } ,
746
746
peer : transceiverPeer ,
747
747
vaa : derivePostedVaaKey ( this . wormholeId , Buffer . from ( wormholeNTT . hash ) ) ,
748
748
transceiverMessage : this . transceiverMessageAccountAddress (
@@ -825,7 +825,7 @@ export class NTT {
825
825
// In case the redeemed amount exceeds the remaining inbound rate limit capacity,
826
826
// the transaction gets delayed. If this happens, the second instruction will not actually
827
827
// be able to release the transfer yet.
828
- // To make sure the transaction still succeeds, we set revertOnDelay to false, which will
828
+ // To make sure the transaction still succeeds, we set revertWhenNotReady to false, which will
829
829
// just make the second instruction a no-op in case the transfer is delayed.
830
830
831
831
const tx = new Transaction ( )
@@ -838,8 +838,7 @@ export class NTT {
838
838
nttMessage,
839
839
recipient : new PublicKey ( nttMessage . payload . recipientAddress . toUint8Array ( ) ) ,
840
840
chain : chainId ,
841
- revertOnDelay : false ,
842
- config : config
841
+ revertWhenNotReady : false
843
842
}
844
843
845
844
if ( config . mode . locking != null ) {
0 commit comments