fix: lint

This commit is contained in:
aryan
2024-12-28 01:13:26 +05:30
parent 6895018562
commit 5ab87242fd
4 changed files with 35 additions and 28 deletions

View File

@@ -1299,11 +1299,13 @@ export class SolanaTipLinkTool extends Tool {
}
const amount = parseFloat(parsedInput.amount);
const splmintAddress = parsedInput.splmintAddress ? new PublicKey(parsedInput.splmintAddress) : undefined;
const splmintAddress = parsedInput.splmintAddress
? new PublicKey(parsedInput.splmintAddress)
: undefined;
const { url, signature } = await this.solanaKit.createTiplink(
amount,
splmintAddress
splmintAddress,
);
return JSON.stringify({
@@ -1312,14 +1314,13 @@ export class SolanaTipLinkTool extends Tool {
signature,
amount,
tokenType: splmintAddress ? "SPL" : "SOL",
message: `TipLink created successfully`
message: `TipLink created successfully`,
});
} catch (error: any) {
return JSON.stringify({
status: "error",
message: error.message,
code: error.code || "UNKNOWN_ERROR"
code: error.code || "UNKNOWN_ERROR",
});
}
}