From b8ce756a4d672ece4407bdee80e65fa1aad5255d Mon Sep 17 00:00:00 2001 From: John Saigle Date: Tue, 2 Apr 2024 09:06:07 -0400 Subject: [PATCH] solana: update arg name in tests --- solana/ts/sdk/ntt.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/solana/ts/sdk/ntt.ts b/solana/ts/sdk/ntt.ts index f0bf0841f..abb0a45d8 100644 --- a/solana/ts/sdk/ntt.ts +++ b/solana/ts/sdk/ntt.ts @@ -432,7 +432,7 @@ export class NTT { payer: PublicKey chain: ChainName | ChainId nttMessage: NttMessage - revertOnDelay: boolean + revertWhenNotReady: boolean recipient?: PublicKey config?: Config }): Promise { @@ -449,7 +449,7 @@ export class NTT { return await this.program.methods .releaseInboundMint({ - revertOnDelay: args.revertOnDelay + revertWhenNotReady: args.revertWhenNotReady }) .accounts({ common: { @@ -468,7 +468,7 @@ export class NTT { payer: Keypair chain: ChainName | ChainId nttMessage: NttMessage - revertOnDelay: boolean + revertWhenNotReady: boolean config?: Config }): Promise { if (await this.isPaused()) { @@ -491,7 +491,7 @@ export class NTT { payer: PublicKey chain: ChainName | ChainId nttMessage: NttMessage - revertOnDelay: boolean + revertWhenNotReady: boolean recipient?: PublicKey config?: Config }): Promise { @@ -508,7 +508,7 @@ export class NTT { return await this.program.methods .releaseInboundUnlock({ - revertOnDelay: args.revertOnDelay + revertWhenNotReady: args.revertWhenNotReady }) .accounts({ common: { @@ -528,7 +528,7 @@ export class NTT { payer: Keypair chain: ChainName | ChainId nttMessage: NttMessage - revertOnDelay: boolean + revertWhenNotReady: boolean config?: Config }): Promise { if (await this.isPaused()) { @@ -664,7 +664,7 @@ export class NTT { return await this.program.methods.receiveWormholeMessage().accounts({ payer: args.payer, - config: { config: this.configAccountAddress() }, + config: { config: this.configAccountAddress() }, peer: transceiverPeer, vaa: derivePostedVaaKey(this.wormholeId, Buffer.from(wormholeNTT.hash)), transceiverMessage: this.transceiverMessageAccountAddress( @@ -747,7 +747,7 @@ export class NTT { // In case the redeemed amount exceeds the remaining inbound rate limit capacity, // the transaction gets delayed. If this happens, the second instruction will not actually // be able to release the transfer yet. - // To make sure the transaction still succeeds, we set revertOnDelay to false, which will + // To make sure the transaction still succeeds, we set revertWhenNotReady to false, which will // just make the second instruction a no-op in case the transfer is delayed. const tx = new Transaction() @@ -760,8 +760,7 @@ export class NTT { nttMessage, recipient: new PublicKey(nttMessage.payload.recipientAddress.toUint8Array()), chain: chainId, - revertOnDelay: false, - config: config + revertWhenNotReady: false } if (config.mode.locking != null) {