Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RanGojo committed Nov 20, 2023
1 parent 34c6127 commit 5fd6ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallets/provider-safe/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ if (
export const sdk = new SDK(options);

export async function getSafeInstance(): Promise<any> {
const successCode = 200;
const timeout = 200;
const accountInfo = await Promise.race([
sdk.safe.getInfo(),
new Promise<undefined>((resolve) => setTimeout(resolve, successCode)),
new Promise<undefined>((resolve) => setTimeout(resolve, timeout)),
]);
return accountInfo ? new SafeAppProvider(accountInfo, sdk as any) : null;
}
Expand Down

0 comments on commit 5fd6ad6

Please sign in to comment.