Skip to content

Commit

Permalink
fix test (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey authored Aug 22, 2023
1 parent 7330b17 commit be2436d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/smartContracts/deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function awaitTxConfirmation(
.smartContracts()
.awaitRequiredOperationStatus(
deploymentOperationId,
EOperationStatus.FINAL,
EOperationStatus.FINAL_SUCCESS,
);
console.log(
`Transaction with Operation ID ${chalk.yellow(
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions examples/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit be2436d

Please sign in to comment.