catch account collector error
This commit is contained in:
parent
45f2bc9ea8
commit
92a967a23d
@ -20,7 +20,7 @@ addEventListener('message', async ({ data }) => {
|
|||||||
const account = await getAccountByAddress(accountAddress, data.url, data.token);
|
const account = await getAccountByAddress(accountAddress, data.url, data.token);
|
||||||
postMessage(account);
|
postMessage(account);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`ERROR we failed to get account {accountAddress}`, error);
|
console.log(`ERROR we failed to get account ${accountAddress}`, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ addEventListener('message', async ({ data }) => {
|
|||||||
async function getAccountByAddress(
|
async function getAccountByAddress(
|
||||||
accountAddress: string,
|
accountAddress: string,
|
||||||
metaUrl: string,
|
metaUrl: string,
|
||||||
token: string
|
token: string,
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
const userKey = await User.toKey(add0x(accountAddress));
|
const userKey = await User.toKey(add0x(accountAddress));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user