Skip to content

Commit

Permalink
Await crypto WASM blob
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Jul 31, 2024
1 parent c09b367 commit 0aac58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/account/src/extension/ExtensionWeb2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { getFingerprint } from '@prosopo/detector'
import { stringToU8a } from '@polkadot/util/string'
import { u8aToHex } from '@polkadot/util/u8a'
import { version } from '@prosopo/util'
import { cryptoWaitReady } from '@polkadot/util-crypto'

type AccountWithKeyPair = InjectedAccount & { keypair: KeyringPair }

Expand Down Expand Up @@ -77,6 +78,7 @@ export class ExtensionWeb2 extends Extension {
}

private async createAccount(config: ProcaptchaClientConfigOutput): Promise<AccountWithKeyPair> {
await cryptoWaitReady()
const params = {
area: { width: 300, height: 300 },
offsetParameter: 2001000001,
Expand Down

0 comments on commit 0aac58f

Please sign in to comment.