From a3eb1e6a1207d3ccdee346f54d7ca11f0cb6200a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 07:54:31 +0000 Subject: [PATCH 1/2] Initial plan From c63f87c586984127b4a5214d7b52bdb2aad13599 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 07:58:26 +0000 Subject: [PATCH 2/2] Add ESLint configuration and fix linting issues Co-authored-by: wildhash <30030014+wildhash@users.noreply.github.com> --- .eslintrc.json | 32 ++++++++++++++++++++++++++++++++ scripts/demo-scenario.js | 1 - test/AgentEscrowMNEE.test.js | 4 ++-- 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..051ef59 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,32 @@ +{ + "env": { + "node": true, + "es2021": true, + "mocha": true + }, + "extends": [ + "eslint:recommended", + "prettier" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "commonjs" + }, + "globals": { + "artifacts": "readonly", + "ethers": "readonly", + "network": "readonly" + }, + "rules": { + "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "no-console": "off" + }, + "ignorePatterns": [ + "node_modules/", + "artifacts/", + "cache/", + "coverage/", + "typechain-types/", + "deployments/*.json" + ] +} diff --git a/scripts/demo-scenario.js b/scripts/demo-scenario.js index 4d91cc1..17a0e99 100644 --- a/scripts/demo-scenario.js +++ b/scripts/demo-scenario.js @@ -200,7 +200,6 @@ async function main() { console.log(` Gas Used: ${submitReceipt.gasUsed}\n`); // Show task status - const taskAfterSubmit = await escrow.getTask(taskId); console.log(`📋 Task Status: Submitted (awaiting verification)\n`); await sleep(1500); diff --git a/test/AgentEscrowMNEE.test.js b/test/AgentEscrowMNEE.test.js index 039d3c2..a4659d0 100644 --- a/test/AgentEscrowMNEE.test.js +++ b/test/AgentEscrowMNEE.test.js @@ -282,7 +282,7 @@ describe("AgentEscrowMNEE", function () { }); it("Should update reputation stats on success", async function () { - const { escrow, payer, payee, verifier } = await loadFixture(createAndSubmitFixture); + const { escrow, payee, verifier } = await loadFixture(createAndSubmitFixture); await escrow.connect(verifier).scoreAndResolve(0, 85); @@ -442,7 +442,7 @@ describe("AgentEscrowMNEE", function () { }); it("Should handle multiple concurrent tasks", async function () { - const { escrow, mnee, payer, payee, verifier } = await loadFixture(deployFixture); + const { escrow, payer, payee, verifier } = await loadFixture(deployFixture); // Create 5 tasks for (let i = 0; i < 5; i++) {