Skip to content

Commit

Permalink
changed pathas for sample.js test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtmeeseeks committed Sep 30, 2024
1 parent 729cdb0 commit a9a4589
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions script/DeployAll.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/sample.js
Original file line number Diff line number Diff line change
@@ -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();

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a9a4589

Please sign in to comment.