From 25b484a506ab56818ae4f517a39de82e7c61c52e Mon Sep 17 00:00:00 2001 From: xiaohuo Date: Sun, 22 Dec 2024 21:14:48 +0800 Subject: [PATCH] fix: more log --- .../plugin-solana-agentkit/src/actions/createToken.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/plugin-solana-agentkit/src/actions/createToken.ts b/packages/plugin-solana-agentkit/src/actions/createToken.ts index f3b718820a..b0720348d5 100644 --- a/packages/plugin-solana-agentkit/src/actions/createToken.ts +++ b/packages/plugin-solana-agentkit/src/actions/createToken.ts @@ -112,19 +112,21 @@ export default { openAIKey ); try { - const deployedAddress = solanaAgentKit.deployToken( + const deployedAddress = await solanaAgentKit.deployToken( content.name, content.uri, content.symbol, - content.decimals, - content.initialSupply + content.decimals + // content.initialSupply comment out this cause the sdk has some issue with this parameter ); elizaLogger.log("Create successful: ", deployedAddress); + elizaLogger.log(deployedAddress); if (callback) { callback({ text: `Successfully create token ${content.name}`, content: { success: true, + deployedAddress, }, }); }