Skip to content

Commit 7dc2544

Browse files
fix spacing disparity BaseProvider.ts
Signed-off-by: Robert Mads Christensen <[email protected]>
1 parent ee91d19 commit 7dc2544

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

packages/lit-auth-client/src/lib/providers/BaseProvider.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,22 @@ export abstract class BaseProvider {
186186

187187
let pkps: IRelayPKP[] = [];
188188
try {
189-
const pkpPermissions = litContracts.pkpPermissionsContract;
190-
const tokenIds = await pkpPermissions.read.getTokenIdsForAuthMethod(
191-
authMethod.authMethodType,
192-
await googleProvider.getAuthMethodId(authMethod)
193-
);
194-
for (const tokenId of tokenIds) {
195-
const pubkey = await pkpPermissions.read.getPubkey(tokenId);
196-
if (pubkey) {
197-
const ethAddress = ethers.utils.computeAddress(pubkey);
198-
pkps.push({
199-
tokenId: tokenId.toString(),
200-
publicKey: pubkey,
201-
ethAddress: ethAddress,
202-
});
203-
}
189+
const pkpPermissions = litContracts.pkpPermissionsContract;
190+
const tokenIds = await pkpPermissions.read.getTokenIdsForAuthMethod(
191+
authMethod.authMethodType,
192+
await googleProvider.getAuthMethodId(authMethod)
193+
);
194+
for (const tokenId of tokenIds) {
195+
const pubkey = await pkpPermissions.read.getPubkey(tokenId);
196+
if (pubkey) {
197+
const ethAddress = ethers.utils.computeAddress(pubkey);
198+
pkps.push({
199+
tokenId: tokenId.toString(),
200+
publicKey: pubkey,
201+
ethAddress: ethAddress,
202+
});
204203
}
204+
}
205205
} catch (error) {
206206
console.error("Failed to fetch PKPs from contract:", error);
207207
}

0 commit comments

Comments
 (0)