Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-zhang-sv committed Oct 11, 2023
1 parent eb2fbb5 commit c93966c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/wallet-sdk/src/provider/WalletLinkRelayUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class WalletLinkRelayUI implements WalletUI {
sessionId: options.session.id,
sessionSecret: options.session.secret,
linkAPIUrl: options.linkAPIUrl,
connected: options.connected,
chainId: options.chainId,
connected: false,
chainId: 1,
isParentConnection: false,
});
}
Expand Down
2 changes: 0 additions & 2 deletions packages/wallet-sdk/src/provider/WalletUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export interface WalletUIOptions {
version: string;
darkMode: boolean;
session: Session;
connected: boolean;
chainId: number;
}

export interface WalletUI {
Expand Down
4 changes: 1 addition & 3 deletions packages/wallet-sdk/src/relay/WalletLinkRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,6 @@ export class WalletLinkRelay extends WalletSDKRelayAbstract {
version: this.options.version,
darkMode: this.options.darkMode,
session,
connected: false,
chainId: this.dappDefaultChain,
});

if (ui instanceof WalletLinkRelayUI) {
Expand Down Expand Up @@ -623,7 +621,7 @@ export class WalletLinkRelay extends WalletSDKRelayAbstract {
this.publishEvent('Web3RequestCanceled', message, false).then();
}

private publishEvent(
protected publishEvent(
event: string,
message: RelayMessage,
callWebhook: boolean
Expand Down

0 comments on commit c93966c

Please sign in to comment.