Skip to content

Commit 065aa32

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

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

solana/ts/sdk/ntt.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class NTT {
238238
const releaseIx: TransactionInstruction = await this.createReleaseOutboundInstruction({
239239
payer: args.payer.publicKey,
240240
outboxItem: outboxItem.publicKey,
241-
revertOnDelay: !args.shouldQueue
241+
revertWhenNotReady: !args.shouldQueue
242242
})
243243

244244
const signers = [args.payer, args.fromAuthority, outboxItem]
@@ -379,13 +379,13 @@ export class NTT {
379379
async createReleaseOutboundInstruction(args: {
380380
payer: PublicKey
381381
outboxItem: PublicKey
382-
revertOnDelay: boolean
382+
revertWhenNotReady: boolean
383383
}): Promise<TransactionInstruction> {
384384
const whAccs = getWormholeDerivedAccounts(this.program.programId, this.wormholeId)
385385

386386
return await this.program.methods
387387
.releaseWormholeOutbound({
388-
revertOnDelay: args.revertOnDelay
388+
revertWhenNotReady: args.revertWhenNotReady
389389
})
390390
.accounts({
391391
payer: args.payer,
@@ -407,7 +407,7 @@ export class NTT {
407407
async releaseOutbound(args: {
408408
payer: Keypair
409409
outboxItem: PublicKey
410-
revertOnDelay: boolean
410+
revertWhenNotReady: boolean
411411
config?: Config
412412
}) {
413413
if (await this.isPaused()) {
@@ -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()) {
@@ -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,7 +760,7 @@ export class NTT {
760760
nttMessage,
761761
recipient: new PublicKey(nttMessage.payload.recipientAddress.toUint8Array()),
762762
chain: chainId,
763-
revertOnDelay: false,
763+
revertWhenNotReady: false,
764764
config: config
765765
}
766766

0 commit comments

Comments
 (0)