Skip to content

Commit 7e541d7

Browse files
authored
Merge pull request #199 from argentlabs/fix/connect-session-theme
fix: add theme option for webwallet connect and sign session
2 parents bae22ff + 606bb0c commit 7e541d7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/connectors/webwallet/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export class WebWalletConnector extends Connector {
139139
callbackData,
140140
approvalRequests,
141141
sessionTypedData,
142+
theme: this._options.theme,
142143
})
143144
} catch (error) {
144145
if (

src/connectors/webwallet/starknetWindowObject/argentStarknetWindowObject.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ type ConnectWebwalletProps = {
4242
theme?: Theme
4343
}
4444

45+
type ConnectAndSignSessionProps = ConnectWebwalletProps & {
46+
callbackData?: string
47+
approvalRequests: ApprovalRequest[]
48+
sessionTypedData: TypedData
49+
}
50+
4551
export type WebWalletStarknetWindowObject = StarknetWindowObject & {
4652
getLoginStatus(): Promise<LoginStatus>
4753
connectWebwallet(props?: ConnectWebwalletProps): Promise<{
@@ -59,11 +65,8 @@ export type WebWalletStarknetWindowObject = StarknetWindowObject & {
5965
callbackData,
6066
approvalRequests,
6167
sessionTypedData,
62-
}: {
63-
callbackData?: string
64-
approvalRequests: ApprovalRequest[]
65-
sessionTypedData: TypedData
66-
}): Promise<ConnectAndSignSessionOutput>
68+
theme,
69+
}: ConnectAndSignSessionProps): Promise<ConnectAndSignSessionOutput>
6770
}
6871

6972
export const getArgentStarknetWindowObject = (
@@ -82,7 +85,6 @@ export const getArgentStarknetWindowObject = (
8285
})
8386
},
8487
connectAndSignSession: (props) => {
85-
console.log("connectAndSignSession", props)
8688
return proxyLink.connectAndSignSession.mutate(props)
8789
},
8890
connectWebwalletSSO: (token, authorizedPartyId) => {

0 commit comments

Comments
 (0)