Skip to content

Commit 4dccf7e

Browse files
committed
remove timeouts
1 parent cf2edbf commit 4dccf7e

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

apps/connect/src/routes/login.lazy.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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');

packages/hypergraph/src/connect/login.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)