Skip to content

Commit

Permalink
Bump ic-js (#3815)
Browse files Browse the repository at this point in the history
# Motivation

Pull in the changes from dfinity/ic-js#477 to
forward pending UTXOs from the minter.

# Changes

## Automated

Ran `npm run upgrade:next`

## Manual

Added required constructor parameters to `MinterNoNewUtxosError`.

# Tests

Existing tests pass.

# Todos

- [ ] Add entry to changelog (if necessary).
not necessary
  • Loading branch information
dskloetd authored Nov 21, 2023
1 parent b2b1d4e commit 1b78e5e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 56 deletions.
108 changes: 54 additions & 54 deletions frontend/package-lock.json

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

10 changes: 8 additions & 2 deletions frontend/src/tests/lib/services/ckbtc-minter.services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ describe("ckbtc-minter-services", () => {

it("should handle no new UTXOs success", async () => {
vi.spyOn(minterApi, "updateBalance").mockImplementation(async () => {
throw new MinterNoNewUtxosError();
throw new MinterNoNewUtxosError({
required_confirmations: 12,
pending_utxos: [],
});
});

const spyOnToastsSuccess = vi.spyOn(toastsStore, "toastsSuccess");
Expand Down Expand Up @@ -271,7 +274,10 @@ describe("ckbtc-minter-services", () => {

it("should not handle no new UTXOs success if no ui indicators", async () => {
vi.spyOn(minterApi, "updateBalance").mockImplementation(async () => {
throw new MinterNoNewUtxosError();
throw new MinterNoNewUtxosError({
required_confirmations: 12,
pending_utxos: [],
});
});

const spyOnToastsShow = vi.spyOn(toastsStore, "toastsShow");
Expand Down

0 comments on commit 1b78e5e

Please sign in to comment.