Skip to content

Commit

Permalink
Fix error init (#161)
Browse files Browse the repository at this point in the history
* fix TransactionFailedError type

* bump
  • Loading branch information
Yolley committed Apr 8, 2024
1 parent a05d801 commit 1104b99
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "6.1.1",
"version": "6.1.2",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/common",
"version": "6.1.1",
"version": "6.1.2",
"description": "Common utilities and types used by streamflow packages.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down
8 changes: 7 additions & 1 deletion packages/common/solana/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ export interface ConfirmationParams {
commitment?: Commitment;
}

export class TransactionFailedError extends Error {}
export class TransactionFailedError extends Error {
constructor(m: string) {
super(m);
Object.setPrototypeOf(this, TransactionFailedError.prototype);
this.name = "TransactionFailedError";
}
}
2 changes: 1 addition & 1 deletion packages/distributor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/distributor",
"version": "6.1.1",
"version": "6.1.2",
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/stream",
"version": "6.1.1",
"version": "6.1.2",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand Down

0 comments on commit 1104b99

Please sign in to comment.