Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported error classes from sdk #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

MarkusGarmeister
Copy link

@MarkusGarmeister MarkusGarmeister commented Jul 30, 2024

fixes KILTProtocol/ticket#3077

The error classes from the extension now extend the error class from the sdk. They should be now an instance of the sdk error class. Also the error classes from the sdk are imported and are not implemented in the extension again.
I first imported the class directly from '@kiltprotocol/utils', where the SDKError.ts file is located, but this resulted in the issue of having different instances of the classes.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@MarkusGarmeister MarkusGarmeister changed the title Mg error classes Imported error classes from sdk Aug 1, 2024
@MarkusGarmeister MarkusGarmeister marked this pull request as ready for review August 1, 2024 08:50
Copy link
Member

@Dudleyneedham Dudleyneedham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but you need to update your linting settings in visual studio code.

@@ -4673,4 +4673,4 @@ zip-stream@^4.1.0:
dependencies:
archiver-utils "^3.0.4"
compress-commons "^4.1.2"
readable-stream "^3.6.0"
readable-stream "^3.6.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this missing?

Maybe in your settings you don't include line break at the bottom.


export declare class SignatureMalformedError extends MessageError {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this?

@Dudleyneedham
Copy link
Member

I also noticed that the linting isnt working can we try to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants