@solworks/poll-mcp 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/index.js +2 -2
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -405,7 +405,7 @@ export const TOOL_DEFINITIONS = {
|
|
|
405
405
|
if (!options || !Array.isArray(options) || options.length < 2)
|
|
406
406
|
return errorResult('Missing or invalid parameter: options (must be an array with at least 2 items)');
|
|
407
407
|
try {
|
|
408
|
-
const
|
|
408
|
+
const result = await client.createBet({
|
|
409
409
|
question,
|
|
410
410
|
expectedUserCount: 2,
|
|
411
411
|
minimumVoteCount: 2,
|
|
@@ -414,7 +414,7 @@ export const TOOL_DEFINITIONS = {
|
|
|
414
414
|
minimumWagerAmount: args.amount,
|
|
415
415
|
allWagersDueBy: args.expiresAt,
|
|
416
416
|
});
|
|
417
|
-
return textResult(`Bet created successfully!\n Question: ${
|
|
417
|
+
return textResult(`Bet created successfully!\n Question: ${question}\n Options: ${options.join(', ')}\n Address: ${result.relatedAddress}`);
|
|
418
418
|
}
|
|
419
419
|
catch (err) {
|
|
420
420
|
return errorResult(err.message);
|