Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/v1.1.7 #94

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/connectors/injected/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ export class InjectedConnector extends Connector {
let accounts
try {
accounts = await this._wallet.enable({ starknetVersion: "v5" })

const { provider } = this._options
if (provider) {
Object.assign(this._wallet.account, {
provider,
})
}
} catch {
// NOTE: Argent v3.0.0 swallows the `.enable` call on reject, so this won't get hit.
throw new UserRejectedRequestError()
Expand Down
2 changes: 2 additions & 0 deletions src/connectors/webwallet/helpers/openWebwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const openWebwallet = async (
return await getWebWalletStarknetObject(
origin,
windowProxyClient,
provider,
undefined,
)
}
Expand Down Expand Up @@ -91,6 +92,7 @@ export const openWebwallet = async (
return await getWebWalletStarknetObject(
origin,
windowProxyClient,
provider,
undefined,
)
}
Expand Down
Loading