clawmoney 0.7.0 → 0.7.2
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/commands/browse.js +1 -1
- package/dist/commands/hire.js +2 -2
- package/package.json +1 -1
package/dist/commands/browse.js
CHANGED
|
@@ -82,7 +82,7 @@ export async function browseCommand(options) {
|
|
|
82
82
|
if (taskType === 'boost' || taskType === 'all') {
|
|
83
83
|
const boostSpinner = ora('Fetching boost tasks...').start();
|
|
84
84
|
try {
|
|
85
|
-
const resp = await apiGet(`/api/v1/
|
|
85
|
+
const resp = await apiGet(`/api/v1/boost/?status=${status}&limit=${limit}`, apiKey);
|
|
86
86
|
if (!resp.ok) {
|
|
87
87
|
boostSpinner.fail(`Failed to fetch boost tasks (${resp.status})`);
|
|
88
88
|
}
|
package/dist/commands/hire.js
CHANGED
|
@@ -92,8 +92,8 @@ export async function hireVerifyCommand(submissionId, options) {
|
|
|
92
92
|
console.error(chalk.red(err.message));
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
// Parse witness response
|
|
96
|
-
const proof = witnessData?.data?.proof || witnessData?.proof;
|
|
95
|
+
// Parse witness response — awalExec wraps: { success, data: { status, data: { code, data: {...}, proof: {...} } } }
|
|
96
|
+
const proof = witnessData?.data?.data?.proof || witnessData?.data?.proof || witnessData?.proof;
|
|
97
97
|
if (!proof) {
|
|
98
98
|
console.error(chalk.red(' No proof in witness response'));
|
|
99
99
|
console.log(chalk.dim(` Raw: ${JSON.stringify(witnessData).slice(0, 200)}`));
|