mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-09 20:12:06 +10:00
feat: add error handling
This commit is contained in:
2
bot.ts
2
bot.ts
@ -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`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user