swallow errors

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2024-07-07 10:41:20 +02:00
parent fef1a97528
commit 0a7ac64413
1 changed files with 15 additions and 9 deletions

View File

@ -109,15 +109,21 @@ interface OracleInterface {
await Promise.all( await Promise.all(
chunk(pullIxs, 2, false).map(async (ixsChunk) => { chunk(pullIxs, 2, false).map(async (ixsChunk) => {
const ret = sendTransaction( try {
userProvider, const ret = sendTransaction(
[...ixsChunk], userProvider,
await loadLookupTables(lutOwners), [...ixsChunk],
{ prioritizationFee: 100 }, await loadLookupTables(lutOwners),
); { prioritizationFee: 100 },
console.log( );
`submitted in in https://solscan.io/tx/${(await ret).signature}`, console.log(
); `submitted in in https://solscan.io/tx/${
(await ret).signature
}`,
);
} catch (error) {
console.log(`Error in sending tx, ${error}`);
}
}), }),
); );