Skip to content

Commit

Permalink
keep original stackTrace in ContractError (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley authored Jan 16, 2024
1 parent f2c485c commit 8a0d2fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/stream/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,6 @@ export class ContractError extends Error {
// Copy properties from the original error
Object.setPrototypeOf(this, ContractError.prototype);
this.name = "ContractError"; // Set the name property
this.stack = error.stack;
}
}
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": "5.9.8",
"version": "5.9.9",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"main": "dist/index.js",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
Expand Down

0 comments on commit 8a0d2fe

Please sign in to comment.