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

feat: minter throw errors #290

Merged
merged 6 commits into from
Feb 14, 2023
Merged

Conversation

peterpeterparker
Copy link
Member

Motivation

This adapt the minter to the ic-js pattern that does not return an error value but, throw them.

Changes

  • create new error types and throw errors

Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

Thanks!

@peterpeterparker peterpeterparker merged commit 25d4d5d into main Feb 14, 2023
@peterpeterparker peterpeterparker deleted the feat/ckbtc-minter-throw-error branch February 14, 2023 06:00
peterpeterparker added a commit to dfinity/nns-dapp that referenced this pull request Feb 14, 2023
# Motivation

Call `minter.update_balance` to finalize transferring bitcoin to ckBTC.

# PR

- [x] dfinity/ic-js#289
- [x] dfinity/ic-js#290

# Changes

- call `update_balance` and reload account on success in ckBTC "Receive" modal
- integrate related API and services from ic-js
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