File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,6 @@ export const createGianoProvider = (options: CreateGianoProviderParams) => {
293293 owners : [ toWebAuthnAccount ( { credential } ) ] ,
294294 factoryAddress : gianoSmartWalletFactoryAddress ,
295295 } ) ;
296- const smartAccountAddress = await smartAccount . getAddress ( ) ;
297296
298297 const xyVector = extractXYCoords ( credential . publicKey ) ;
299298
@@ -311,6 +310,8 @@ export const createGianoProvider = (options: CreateGianoProviderParams) => {
311310 // Always call the injection callback regardless of deployment status
312311 await injection . onCredentialKey ( credential . raw . rawId , xyVector ) ;
313312
313+ const smartAccountAddress = await smartAccount . getAddress ( ) ;
314+
314315 emit ( 'connect' , { chainId : `0x${ chain ! . id . toString ( 16 ) } ` } ) ;
315316 emit ( 'accountsChanged' , [ smartAccountAddress ] ) ;
316317 return [ smartAccountAddress ] ;
You can’t perform that action at this time.
0 commit comments