Skip to content

Commit 81bfe94

Browse files
including ssq library for disputeKitClassic
1 parent 2ad37ea commit 81bfe94

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,22 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
2727
from: deployer,
2828
log: true,
2929
});
30-
31-
const disputeKit = await deploy("DisputeKitClassic", {
30+
31+
const SSQLibrary = await deploy("SSQ", {
3232
from: deployer,
33-
args: [deployer, AddressZero, rng.address],
3433
log: true,
3534
});
3635

37-
const sortitionSumTreeLibrary = await deploy("SortitionSumTreeFactory", {
36+
const disputeKit = await deploy("DisputeKitClassic", {
3837
from: deployer,
38+
libraries: {
39+
SSQ: SSQLibrary.address
40+
},
41+
args: [deployer, AddressZero, rng.address],
3942
log: true,
4043
});
4144

42-
const ssqLibrary = await deploy("SSQ", {
45+
const sortitionSumTreeLibrary = await deploy("SortitionSumTreeFactory", {
4346
from: deployer,
4447
log: true,
4548
});
@@ -63,7 +66,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
6366
from: deployer,
6467
libraries: {
6568
SortitionSumTreeFactory: sortitionSumTreeLibrary.address,
66-
SSQ: ssqLibrary.address
69+
SSQ: SSQLibrary.address
6770
},
6871
args: [deployer, pnk, AddressZero, disputeKit.address, false, minStake, alpha, feeForJuror, 3, [0, 0, 0, 0], 3],
6972
log: true,

0 commit comments

Comments
 (0)