Skip to content

Commit c8ae28f

Browse files
committed
solana: update arg name in tests
1 parent a91862f commit c8ae28f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

solana/ts/sdk/ntt.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ export class NTT {
477477
payer: PublicKey
478478
chain: ChainName | ChainId
479479
nttMessage: NttMessage
480-
revertOnDelay: boolean
480+
revertWhenNotReady: boolean
481481
recipient?: PublicKey
482482
config?: Config
483483
}): Promise<TransactionInstruction> {
@@ -494,7 +494,7 @@ export class NTT {
494494

495495
return await this.program.methods
496496
.releaseInboundMint({
497-
revertOnDelay: args.revertOnDelay
497+
revertWhenNotReady: args.revertWhenNotReady
498498
})
499499
.accounts({
500500
common: {
@@ -513,7 +513,7 @@ export class NTT {
513513
payer: Keypair
514514
chain: ChainName | ChainId
515515
nttMessage: NttMessage
516-
revertOnDelay: boolean
516+
revertWhenNotReady: boolean
517517
config?: Config
518518
}): Promise<void> {
519519
if (await this.isPaused()) {
@@ -536,7 +536,7 @@ export class NTT {
536536
payer: PublicKey
537537
chain: ChainName | ChainId
538538
nttMessage: NttMessage
539-
revertOnDelay: boolean
539+
revertWhenNotReady: boolean
540540
recipient?: PublicKey
541541
config?: Config
542542
}): Promise<TransactionInstruction> {
@@ -553,7 +553,7 @@ export class NTT {
553553

554554
return await this.program.methods
555555
.releaseInboundUnlock({
556-
revertOnDelay: args.revertOnDelay
556+
revertWhenNotReady: args.revertWhenNotReady
557557
})
558558
.accounts({
559559
common: {
@@ -573,7 +573,7 @@ export class NTT {
573573
payer: Keypair
574574
chain: ChainName | ChainId
575575
nttMessage: NttMessage
576-
revertOnDelay: boolean
576+
revertWhenNotReady: boolean
577577
config?: Config
578578
}): Promise<void> {
579579
if (await this.isPaused()) {
@@ -742,7 +742,7 @@ export class NTT {
742742

743743
return await this.program.methods.receiveWormholeMessage().accounts({
744744
payer: args.payer,
745-
config: { config: this.configAccountAddress() },
745+
config: { config: this.configAccountAddress() },
746746
peer: transceiverPeer,
747747
vaa: derivePostedVaaKey(this.wormholeId, Buffer.from(wormholeNTT.hash)),
748748
transceiverMessage: this.transceiverMessageAccountAddress(
@@ -825,7 +825,7 @@ export class NTT {
825825
// In case the redeemed amount exceeds the remaining inbound rate limit capacity,
826826
// the transaction gets delayed. If this happens, the second instruction will not actually
827827
// 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
829829
// just make the second instruction a no-op in case the transfer is delayed.
830830

831831
const tx = new Transaction()
@@ -838,8 +838,7 @@ export class NTT {
838838
nttMessage,
839839
recipient: new PublicKey(nttMessage.payload.recipientAddress.toUint8Array()),
840840
chain: chainId,
841-
revertOnDelay: false,
842-
config: config
841+
revertWhenNotReady: false
843842
}
844843

845844
if (config.mode.locking != null) {

0 commit comments

Comments
 (0)