Skip to content

Commit

Permalink
Add ledgerhost as param to connect (AstroxNetwork#17)
Browse files Browse the repository at this point in the history
* Add missing param
  • Loading branch information
MioQuispe authored May 30, 2022
1 parent 0b92888 commit ca2011d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/connection/src/ic/icConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class IC extends ICWindow {
onSuccess: async () => {
await this.handleAuthenticated({
ledgerCanisterId: connectOptions.ledgerCanisterId,
ledgerHost: connectOptions.ledgerHost ?? 'https://boundary.ic0.app/',
});
(await connectOptions?.onSuccess?.()) ?? (await connectOptions?.onAuthenticated?.(this));
resolve(undefined);
Expand Down
1 change: 1 addition & 0 deletions packages/connection/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface AuthClientLoginOptions extends AuthClientCreateOptions {

export interface ConnectOptions extends AuthClientLoginOptions {
ledgerCanisterId?: string;
ledgerHost?: string;
walletProviderUrl?: string;
signerProviderUrl?: string;
useFrame: boolean;
Expand Down

0 comments on commit ca2011d

Please sign in to comment.