Skip to content

Commit

Permalink
fix: build errors after argent mobile update
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Aug 12, 2024
1 parent e3f706a commit 14ced61
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/helpers/defaultConnectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const defaultConnectors = ({
argentMobileOptions,
webWalletUrl,
}: {
argentMobileOptions?: ArgentMobileConnectorOptions
argentMobileOptions: ArgentMobileConnectorOptions
webWalletUrl?: string
}): StarknetkitConnector[] => {
const isSafari =
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useStarknetkitConnectModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type UseStarknetkitConnectors = {
}

const useStarknetkitConnectModal = (
options: Omit<ConnectOptions, "argentMobileOptions" | "webWalletUrl">,
options: Omit<ConnectOptions, "webWalletUrl">,
): UseStarknetkitConnectors => {
const starknetkitConnectModal = async (): Promise<ModalResult> => {
return await connect({
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const connect = async ({
connectors = [],
resultType = "wallet",
...restOptions
}: ConnectOptions = {}): Promise<ModalResult> => {
}: ConnectOptions): Promise<ModalResult> => {
// force null in case it was disconnected from mobile app
selectedConnector = null
const availableConnectors =
Expand Down
2 changes: 1 addition & 1 deletion src/window/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
export type StoreVersion = "chrome" | "firefox" | "edge"

export interface ConnectOptions extends GetWalletOptions {
argentMobileOptions?: ArgentMobileConnectorOptions
argentMobileOptions: ArgentMobileConnectorOptions
dappName?: string
connectors?: StarknetkitConnector[]
modalMode?: "alwaysAsk" | "canAsk" | "neverAsk"
Expand Down

0 comments on commit 14ced61

Please sign in to comment.