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(