File tree Expand file tree Collapse file tree
packages/hypergraph/src/connect Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ function Login() {
8888 transport : custom ( privyProvider ) ,
8989 } ) ;
9090
91- await new Promise ( ( resolve ) => setTimeout ( resolve , 500 ) ) ; // trying to slow down since Privy seems to have a race condition
92-
9391 await hypergraphLogin ( walletClient , embeddedWallet ) ;
9492
9593 const redirect = localStorage . getItem ( 'geo-connect-authenticate-redirect' ) ;
Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ const getAndUpdateSmartAccount = async (
137137 console . log ( 'smartAccountWalletClient' , smartAccountWalletClient ) ;
138138 console . log ( 'address' , smartAccountWalletClient . account . address ) ;
139139 console . log ( 'is deployed' , await isSmartAccountDeployed ( smartAccountWalletClient ) ) ;
140- await new Promise ( ( resolve ) => setTimeout ( resolve , 250 ) ) ; // trying to slow down since Privy seems to have a race condition
141140 // This will prompt the user to sign a user operation to update the smart account
142141 if ( await smartAccountNeedsUpdate ( smartAccountWalletClient , chain , rpcUrl ) ) {
143142 console . log ( 'updating smart account' ) ;
@@ -146,7 +145,6 @@ const getAndUpdateSmartAccount = async (
146145 // Create the client again to ensure we have the 7579 config now
147146 return getSmartAccountWalletClient ( smartAccountParams ) ;
148147 }
149- await new Promise ( ( resolve ) => setTimeout ( resolve , 250 ) ) ; // trying to slow down since Privy seems to have a race condition
150148 console . log ( 'leaving getAndUpdateSmartAccount' ) ;
151149 return smartAccountWalletClient ;
152150} ;
You can’t perform that action at this time.
0 commit comments