Skip to content

web-wallet: add separate prover URL support#937

Open
HDauven wants to merge 1 commit intomainfrom
feature/separate-prover-url
Open

web-wallet: add separate prover URL support#937
HDauven wants to merge 1 commit intomainfrom
feature/separate-prover-url

Conversation

@HDauven
Copy link
Copy Markdown
Member

@HDauven HDauven commented Feb 22, 2026

Resolves #936

@HDauven HDauven requested a review from ascartabelli February 22, 2026 14:06
Copy link
Copy Markdown
Member

@ascartabelli ascartabelli left a comment

Choose a reason for hiding this comment

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

Good to merge: just left a couple of minor notes.

A question though: should this functionality be built in w3sper instead?

const store = (await import("..")).networkStore;
const network = await store.connect();

const originalFetch = globalThis.fetch;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Easier with:

const fetchSpy = vi.spyOn(globalThis, "fetch").mockResolvedValueOnce(...);

).resolves.toBeInstanceOf(ArrayBuffer);

expect(fetchMock).toHaveBeenCalledTimes(1);
expect(fetchMock.mock.calls[0][0]).toBe(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

More idiomatic if you use:

expect(fetchMock).toHaveBeenNthCalledWith(
  1, 
  "https://provers.dusk.network/on/prover/prove"
);

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.

support dedicated prover endpoint configuration (separate from node URL)

2 participants