Skip to content

Commit b8ce756

Browse files
committed
solana: update arg name in tests
1 parent e87c404 commit b8ce756

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
@@ -432,7 +432,7 @@ export class NTT {
432432
payer: PublicKey
433433
chain: ChainName | ChainId
434434
nttMessage: NttMessage
435-
revertOnDelay: boolean
435+
revertWhenNotReady: boolean
436436
recipient?: PublicKey
437437
config?: Config
438438
}): Promise<TransactionInstruction> {
@@ -449,7 +449,7 @@ export class NTT {
449449

450450
return await this.program.methods
451451
.releaseInboundMint({
452-
revertOnDelay: args.revertOnDelay
452+
revertWhenNotReady: args.revertWhenNotReady
453453
})
454454
.accounts({
455455
common: {
@@ -468,7 +468,7 @@ export class NTT {
468468
payer: Keypair
469469
chain: ChainName | ChainId
470470
nttMessage: NttMessage
471-
revertOnDelay: boolean
471+
revertWhenNotReady: boolean
472472
config?: Config
473473
}): Promise<void> {
474474
if (await this.isPaused()) {
@@ -491,7 +491,7 @@ export class NTT {
491491
payer: PublicKey
492492
chain: ChainName | ChainId
493493
nttMessage: NttMessage
494-
revertOnDelay: boolean
494+
revertWhenNotReady: boolean
495495
recipient?: PublicKey
496496
config?: Config
497497
}): Promise<TransactionInstruction> {
@@ -508,7 +508,7 @@ export class NTT {
508508

509509
return await this.program.methods
510510
.releaseInboundUnlock({
511-
revertOnDelay: args.revertOnDelay
511+
revertWhenNotReady: args.revertWhenNotReady
512512
})
513513
.accounts({
514514
common: {
@@ -528,7 +528,7 @@ export class NTT {
528528
payer: Keypair
529529
chain: ChainName | ChainId
530530
nttMessage: NttMessage
531-
revertOnDelay: boolean
531+
revertWhenNotReady: boolean
532532
config?: Config
533533
}): Promise<void> {
534534
if (await this.isPaused()) {
@@ -664,7 +664,7 @@ export class NTT {
664664

665665
return await this.program.methods.receiveWormholeMessage().accounts({
666666
payer: args.payer,
667-
config: { config: this.configAccountAddress() },
667+
config: { config: this.configAccountAddress() },
668668
peer: transceiverPeer,
669669
vaa: derivePostedVaaKey(this.wormholeId, Buffer.from(wormholeNTT.hash)),
670670
transceiverMessage: this.transceiverMessageAccountAddress(
@@ -747,7 +747,7 @@ export class NTT {
747747
// In case the redeemed amount exceeds the remaining inbound rate limit capacity,
748748
// the transaction gets delayed. If this happens, the second instruction will not actually
749749
// 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
751751
// just make the second instruction a no-op in case the transfer is delayed.
752752

753753
const tx = new Transaction()
@@ -760,8 +760,7 @@ export class NTT {
760760
nttMessage,
761761
recipient: new PublicKey(nttMessage.payload.recipientAddress.toUint8Array()),
762762
chain: chainId,
763-
revertOnDelay: false,
764-
config: config
763+
revertWhenNotReady: false
765764
}
766765

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

0 commit comments

Comments
 (0)