Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Dec 25, 2024
1 parent 347075d commit bdbc2fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 269 deletions.
7 changes: 2 additions & 5 deletions packages/plugin-solana-agentkit/src/actions/createToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ export interface CreateTokenContent extends Content {
initialSupply: number;
}

function isCreateTokenContent(
runtime: IAgentRuntime,
content: any
): content is CreateTokenContent {
function isCreateTokenContent(content: any): content is CreateTokenContent {
elizaLogger.log("Content for createToken", content);
return (
typeof content.name === "string" &&
Expand Down Expand Up @@ -94,7 +91,7 @@ export default {
});

// Validate transfer content
if (!isCreateTokenContent(runtime, content)) {
if (!isCreateTokenContent(content)) {
elizaLogger.error("Invalid content for CREATE_TOKEN action.");
if (callback) {
callback({
Expand Down
263 changes: 0 additions & 263 deletions packages/plugin-solana-agentkit/src/actions/transfer.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/plugin-solana-agentkit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const solanaAgentkitPlguin: Plugin = {
description: "Solana Plugin with solana agent kit for Eliza",
actions: [createToken],
evaluators: [],
providers: [,],
providers: [],
};

export default solanaAgentkitPlguin;

0 comments on commit bdbc2fe

Please sign in to comment.