@@ -16,8 +16,8 @@ import {
16} from './constants';
16} from './constants';
17import { stripHexPrefix } from './utils/address';
17import { stripHexPrefix } from './utils/address';
19−const worker = wrap(
19+const WalletGenerator = wrap(
20− new Worker('../worker/worker.js', { type: 'module' })
20+ new Worker('src/worker/worker.ts', { type: 'module' })
23const SEED_LENGTH_BYTES = SEED_ENTROPY_BITS / 8;
23const SEED_LENGTH_BYTES = SEED_ENTROPY_BITS / 8;
@@ -85,11 +85,14 @@ export const generateWallet = async (point, ticket, boot, revision = 0) => {
85 // hangs, blocking UI updates so this cannot be done in the UI
85 // hangs, blocking UI updates so this cannot be done in the UI
86 console.log('Generating Wallet for point address: ', point);
86 console.log('Generating Wallet for point address: ', point);
88− return new Promise(async resolve => {
88+ return new Promise(async (resolve, reject) => {
89 // Use a web worker to process the data
89 // Use a web worker to process the data
90− const processed = await worker.generateWallet(JSON.stringify(config));
91+ const processed = await WalletGenerator.generateWallet(JSON.stringify(config));
92− resolve(processed);
92+ resolve(processed);