Skip to content

Commit

Permalink
fix: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Jan 11, 2024
1 parent defc07e commit 63b86d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sdk/src/utils/transactionSender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export async function executeTransaction(
console.log(`Transaction sent with hash ${hash}`);

if (waitForConfirmation) {
// Wait for the transaction to be mined and confirmed
const receipt = await publicClient.waitForTransactionReceipt({ hash });
return receipt;
// Wait for the transaction to be confirmed
return await publicClient.waitForTransactionReceipt({ hash });
}

return { transactionHash: hash };
Expand Down

0 comments on commit 63b86d2

Please sign in to comment.