Skip to content

Commit

Permalink
fix: more log
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Dec 25, 2024
1 parent 7b8fd8d commit 25b484a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/plugin-solana-agentkit/src/actions/createToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
}
Expand Down

0 comments on commit 25b484a

Please sign in to comment.