Skip to content

Commit 8f1ed1a

Browse files
committed
chore: approval changes
1 parent acbdccd commit 8f1ed1a

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

contracts/deploy/00-home-chain-arbitration-university.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
7575
await changeCurrencyRate(core, await dai.getAddress(), true, 60327783, 11);
7676
await changeCurrencyRate(core, await weth.getAddress(), true, 1, 1);
7777
} catch (e) {
78-
console.error("failed to change currency rates:", e);
78+
console.error("Failed to change currency rates for token, with error:", e);
7979
}
8080

8181
const disputeTemplateRegistry = await getContractOrDeployUpgradable(hre, "DisputeTemplateRegistry", {

contracts/deploy/03-vea-mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
4949
HardhatChain.HARDHAT,
5050
foreignGateway.address,
5151
ethers.ZeroAddress, // feeToken
52+
// Confirm that using ZeroAddress here is intentional and safe for the intended use case.
5253
],
5354
gasLimit: 4000000,
5455
log: true,

contracts/scripts/keeperBot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,11 @@ async function main() {
564564

565565
logger.info(`Current phase: ${PHASES[getNumber(await sortition.phase())]}`);
566566

567-
for (var dispute of disputes) {
567+
for (var disputeDetails of disputes) {
568568
// ----------------------------------------------- //
569569
// PASS PERIOD //
570570
// ----------------------------------------------- //
571-
await passPeriod(dispute);
571+
await passPeriod(disputeDetails);
572572
}
573573

574574
// Get all the disputes whose ruling is not yet executed

contracts/scripts/simulations/tasks.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ task("simulate:create-court", "callable by Governor only. Create a new Court")
7777

7878
const { wallet } = await getWallet(hre, walletindex);
7979

80-
const parent = toBigInt(1) as BigNumberish;
81-
const minStake = (toBigInt(10) ** toBigInt(20) * toBigInt(2)) as BigNumberish;
82-
const alpha = toBigInt(10000) as BigNumberish;
83-
const feeForJuror = (toBigInt(10) ** toBigInt(17)) as BigNumberish;
84-
const jurorsForCourtJump = toBigInt(3) as BigNumberish;
80+
const parent = toBigInt(1);
81+
const minStake = toBigInt(10) ** toBigInt(20) * toBigInt(2);
82+
const alpha = toBigInt(10000);
83+
const feeForJuror = toBigInt(10) ** toBigInt(17);
84+
const jurorsForCourtJump = toBigInt(3);
8585
const hiddenVotes = false as boolean;
8686
const timesPerPeriod = [300, 300, 300, 300] as [BigNumberish, BigNumberish, BigNumberish, BigNumberish];
8787
const sortitionSumTreeK = ethers.toBeHex(3);
@@ -254,7 +254,7 @@ task("simulate:cast-commit", "Casts a commit for a drawn juror")
254254
const salt = "123";
255255
console.log("salt used on juror %s is: %s", walletindex, salt);
256256
const generateCommit = (choice: number, justification: string) => {
257-
const hash = ethers.solidityPackedKeccak256(["string", "string", "string"], [choice, justification, salt]);
257+
const hash = ethers.solidityPackedKeccak256(["uint256", "string", "string"], [choice, justification, salt]);
258258
return ethers.toBeHex(hash);
259259
};
260260
const commitHash = generateCommit(choice, taskArgs.justification);

contracts/test/integration/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ describe("Integration tests", async () => {
4040
}
4141

4242
let deployer;
43-
let rng: RandomizerRNG,
44-
randomizer: RandomizerMock,
45-
disputeKit: DisputeKitClassic,
46-
pnk: PNK,
47-
core: KlerosCore,
48-
vea: VeaMock,
49-
foreignGateway: ForeignGateway,
50-
arbitrable: ArbitrableExample,
51-
homeGateway: HomeGateway,
52-
sortitionModule: SortitionModule;
43+
let rng: RandomizerRNG;
44+
let randomizer: RandomizerMock;
45+
let disputeKit: DisputeKitClassic;
46+
let pnk: PNK;
47+
let core: KlerosCore;
48+
let vea: VeaMock;
49+
let foreignGateway: ForeignGateway;
50+
let arbitrable: ArbitrableExample;
51+
let homeGateway: HomeGateway;
52+
let sortitionModule: SortitionModule;
5353

5454
beforeEach("Setup", async () => {
5555
({ deployer } = await getNamedAccounts());

0 commit comments

Comments
 (0)