Skip to content

Commit

Permalink
CU-86a5uwk3k-BS Lib - Deprecate the waitForTransaction method
Browse files Browse the repository at this point in the history
  • Loading branch information
hotequil committed Jan 2, 2025
1 parent 43a5ea0 commit 3c04807
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/blockchain-service",
"comment": "Deprecate waitForTransaction method",
"type": "patch"
}
],
"packageName": "@cityofzion/blockchain-service"
}
3 changes: 3 additions & 0 deletions packages/blockchain-service/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function wait(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms))
}

/**
* @deprecated use `waitForAccountTransaction` instead
*/
export async function waitForTransaction<BSName extends string = string>(
service: BlockchainService<BSName>,
txId: string
Expand Down

0 comments on commit 3c04807

Please sign in to comment.