Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Nov 9, 2024
1 parent 1b6f1ed commit 335157d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/entrykit/src/passkey/passkeyConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ export function passkeyConnector({ chainId }: PasskeyConnectorOptions): CreatePa
// supportsSimulation: true,

async createPasskey() {
const { credentialId } = await createPasskey();
const { credentialId } = await createPasskey(chain);
const account = await getAccount(client, credentialId);
this.onAccountsChanged([account.address]);
this.onConnect?.({ chainId: numberToHex(chainId) });
},
async reusePasskey() {
const { credentialId } = await reusePasskey();
const { credentialId } = await reusePasskey(chain);
const account = await getAccount(client, credentialId);
this.onAccountsChanged([account.address]);
this.onConnect?.({ chainId: numberToHex(chainId) });
Expand All @@ -104,7 +104,7 @@ export function passkeyConnector({ chainId }: PasskeyConnectorOptions): CreatePa
// attempt to reuse credential if this is called directly
// TODO: move this into wallet so it's only triggered via rainbowkit?
if (!cache.getState().activeCredential && !params?.isReconnecting) {
await reusePasskey();
await reusePasskey(chain);
}

const accounts = await this.getAccounts();
Expand Down

0 comments on commit 335157d

Please sign in to comment.