Skip to content

Commit 485b016

Browse files
committed
refactor: add type to onEvaluate param
1 parent 5c524d1 commit 485b016

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/acp_base/external_evaluation/evaluator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import AcpClient from "../../../src/acpClient";
44
import AcpContractClient from "../../../src/acpContractClient";
5+
import AcpJob from "../../../src/acpJob";
56
import { baseSepoliaAcpConfig } from "../../../src";
67
import {
78
EVALUATOR_WALLET_ADDRESS,
@@ -17,7 +18,7 @@ async function evaluator() {
1718
EVALUATOR_WALLET_ADDRESS,
1819
baseSepoliaAcpConfig
1920
),
20-
onEvaluate: async (job) => {
21+
onEvaluate: async (job: AcpJob) => {
2122
console.log("Evaluation function called", job);
2223
await job.evaluate(true, "Externally evaluated and approved");
2324
console.log(`Job ${job.id} evaluated`);

examples/acp_base/self_evaluation/buyer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function buyer() {
3131
console.log(`Job ${job.id} completed`);
3232
}
3333
},
34-
onEvaluate: async (job) => {
34+
onEvaluate: async (job: AcpJob) => {
3535
console.log("Evaluation function called", job);
3636
await job.evaluate(true, "Self-evaluated and approved");
3737
console.log(`Job ${job.id} evaluated`);

0 commit comments

Comments
 (0)