Skip to content

Commit 25b484a

Browse files
committed
fix: more log
1 parent 7b8fd8d commit 25b484a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/plugin-solana-agentkit/src/actions/createToken.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,21 @@ export default {
112112
openAIKey
113113
);
114114
try {
115-
const deployedAddress = solanaAgentKit.deployToken(
115+
const deployedAddress = await solanaAgentKit.deployToken(
116116
content.name,
117117
content.uri,
118118
content.symbol,
119-
content.decimals,
120-
content.initialSupply
119+
content.decimals
120+
// content.initialSupply comment out this cause the sdk has some issue with this parameter
121121
);
122122
elizaLogger.log("Create successful: ", deployedAddress);
123+
elizaLogger.log(deployedAddress);
123124
if (callback) {
124125
callback({
125126
text: `Successfully create token ${content.name}`,
126127
content: {
127128
success: true,
129+
deployedAddress,
128130
},
129131
});
130132
}

0 commit comments

Comments
 (0)