Skip to content
Open
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"preinstall": "/bin/bash ./scripts/github-build.sh zg/agent-router"
"preinstall": "/bin/bash ./scripts/github-build.sh eug/agent-router"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge this branch to zg/agent-router

},
"dependencies": {
"@aws-sdk/client-s3": "^3.758.0",
Expand Down Expand Up @@ -146,4 +146,4 @@
"workspaces": [
"src/eliza/packages/*"
]
}
}
7 changes: 5 additions & 2 deletions src/eliza/packages/plugin-solana/src/actions/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
composeContext,
generateObjectDeprecated,
ModelClass,
elizaLogger, ActionStatus,
elizaLogger,
ActionStatus,
} from '@elizaos/core';
import { convertNullStrings } from '../providers/swapUtils.js';
import { getTokensBySymbol } from '../providers/tokenUtils.js';
Expand Down Expand Up @@ -81,14 +82,16 @@ export const analyze: Action = {
if (!isSuccess) {
callback?.({
text: `Failed to analyze the token: ${analyzeResult.error}`,

});
return 'failed';
}

const data = analyzeResult.data;
callback?.({
text: `token: ${response.tokenSymbol || response.tokenAddress}\n${JSON.stringify(data)}`,
result: `Successfully analyzed the token: ${response.tokenSymbol ?
(response.tokenAddress ? `${response.tokenSymbol} (${response.tokenAddress})` : response.tokenSymbol)
: response.tokenAddress}`,
status: 'success',
action: `ANALYZE_TOKEN`,
webAction: 'analyze',
Expand Down
Loading