From a9a4589a5097572c69e51e1e512456ccddb20054 Mon Sep 17 00:00:00 2001 From: mrtmeeseeks Date: Mon, 30 Sep 2024 17:40:25 +0300 Subject: [PATCH] changed pathas for sample.js test --- script/DeployAll.s.sol | 11 +++++++++++ test/sample.js | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/script/DeployAll.s.sol b/script/DeployAll.s.sol index d08dffd0..72811326 100644 --- a/script/DeployAll.s.sol +++ b/script/DeployAll.s.sol @@ -101,15 +101,26 @@ contract DeployAll is Script { // Setup initial tasks Task[] memory tasks = new Task[](3); + // open tasks tasks[0] = Task({ uri: "ipfs://QmScDABgjA3MuiEDsLUDMpfe8cAKL1FgtSzLnGJVUF54Nx" }); + // quiz tasks tasks[1] = Task({ uri: "ipfs://QmQZ2wXMsie8EGpbWk9GsRWQUj6JrJuBo7o3xCmnmZVWB7" }); + // join discord tasks tasks[2] = Task({ uri: "ipfs://QmQnvc22SuY6x7qg1ujLFCg3E3QvrgfEEjam7rAbd69Rgu" }); + // polls + // tasks[3] = Task({ + // uri: "ipfs://QmQnvc22SuY6x7qg1ujLFCg3E3QvrgfEEjam7rAbd69Rgu" + // }); + // // gathering tasks + // tasks[4] = Task({ + // uri: "ipfs://QmQnvc22SuY6x7qg1ujLFCg3E3QvrgfEEjam7rAbd69Rgu" + // }); taskRegistry.registerTasks(tasks); // todo: convert to helper function diff --git a/test/sample.js b/test/sample.js index bb428fdd..469b7f60 100644 --- a/test/sample.js +++ b/test/sample.js @@ -1,6 +1,6 @@ const { ethers } = require("ethers"); -const AutID = require("./out/AutID.sol/AutID.json"); -const HubRegistry = require("./out/HubRegistry.sol/HubRegistry.json"); +const AutID = require("../out/AutID.sol/AutID.json"); +const HubRegistry = require("../out/HubRegistry.sol/HubRegistry.json"); const fs = require("fs"); require("dotenv").config(); @@ -38,7 +38,7 @@ const loadDeployedContracts = () => { return latestContracts; }; -async function getOverrides(provider, percentageIncrease = 2000) { +async function getOverrides(provider, percentageIncrease = 3000) { const feeData = await provider.getFeeData(); const percentageMultiplier = BigInt(100 + percentageIncrease); const hundred = BigInt(100);