File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
packages/lit-auth-client/src/lib/providers Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments