From be2436d12a975d8c69e09744d54de37d14c99b92 Mon Sep 17 00:00:00 2001 From: Senji888 <44082144+Ben-Rey@users.noreply.github.com> Date: Tue, 22 Aug 2023 21:37:43 +0200 Subject: [PATCH] fix test (#459) --- examples/smartContracts/deployer.ts | 4 ++-- examples/wallet/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/smartContracts/deployer.ts b/examples/smartContracts/deployer.ts index 193728a2..e2892ea2 100644 --- a/examples/smartContracts/deployer.ts +++ b/examples/smartContracts/deployer.ts @@ -40,7 +40,7 @@ export async function awaitTxConfirmation( .smartContracts() .awaitRequiredOperationStatus( deploymentOperationId, - EOperationStatus.FINAL, + EOperationStatus.FINAL_SUCCESS, ); console.log( `Transaction with Operation ID ${chalk.yellow( @@ -57,7 +57,7 @@ export async function awaitTxConfirmation( throw new Error(ex); } - if (status !== EOperationStatus.FINAL) { + if (status !== EOperationStatus.FINAL_SUCCESS) { const msg = chalk.red( `Transaction ${chalk.yellow( deploymentOperationId, diff --git a/examples/wallet/index.ts b/examples/wallet/index.ts index ee660e6c..b3f5e4fa 100644 --- a/examples/wallet/index.ts +++ b/examples/wallet/index.ts @@ -121,7 +121,7 @@ if (!receiverPrivateKey) { const isVerified = await web3Client .wallet() - .verifySignature(message, signedMessage, deployerAccount.publicKey); + .verifySignature(message, signedMessage); console.log('Signature verification: ', isVerified); // send from base account to receiver @@ -136,7 +136,7 @@ if (!receiverPrivateKey) { console.log('Awaiting Finalization ...'); await web3Client .smartContracts() - .awaitRequiredOperationStatus(txId[0], EOperationStatus.FINAL); + .awaitRequiredOperationStatus(txId[0], EOperationStatus.FINAL_SUCCESS); console.log('Polling events ... '); const events = await EventPoller.getEventsOnce(