feat: add error handling

This commit is contained in:
Filip Dunder
2024-04-21 13:43:46 +02:00
parent 5d9ffcbc43
commit d0b59102c9
3 changed files with 4 additions and 2 deletions

2
bot.ts
View File

@ -173,6 +173,7 @@ export class Bot {
{
mint: poolState.baseMint.toString(),
signature: result.signature,
error: result.error,
},
`Error confirming buy tx`,
);
@ -258,6 +259,7 @@ export class Bot {
{
mint: rawAccount.mint.toString(),
signature: result.signature,
error: result.error,
},
`Error confirming sell tx`,
);