Skip to content

Commit 55902ed

Browse files
committed
Merge branch 'fully-backed-tweaks' into fully-backed-ban
2 parents 0364f52 + 949fd09 commit 55902ed

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

test/fullyBackedSortitionPoolTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ contract("FullyBackedSortitionPool", (accounts) => {
265265
it("removes minimum-bond-ineligible operators and still works afterwards", async () => {
266266
await prepareOperator(alice, bond)
267267
await prepareOperator(bob, bond)
268-
await prepareOperator(carol, bond)
268+
await prepareOperator(carol, bond.muln(100))
269269
await prepareOperator(david, bond)
270270

271271
await mineBlocks(operatorInitBlocks.addn(1))

test/workDistributionTest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const FullyBackedSortitionPool = artifacts.require(
1111

1212
const StakingContractStub = artifacts.require("StakingContractStub.sol")
1313
const BondingContractStub = artifacts.require("BondingContractStub.sol")
14+
const FullyBackedBondingStub = artifacts.require("FullyBackedBondingStub.sol")
1415

1516
const {mineBlocks} = require("./mineBlocks")
1617

@@ -219,7 +220,7 @@ contract("FullyBackedSortitionPool", (accounts) => {
219220
FullyBackedSortitionPool.link(Position)
220221
FullyBackedSortitionPool.link(StackLib)
221222
FullyBackedSortitionPool.link(Leaf)
222-
keepBonding = await BondingContractStub.new()
223+
keepBonding = await FullyBackedBondingStub.new()
223224

224225
pool = await FullyBackedSortitionPool.new(
225226
keepBonding.address,
@@ -307,6 +308,7 @@ contract("FullyBackedSortitionPool", (accounts) => {
307308
address,
308309
web3.utils.toBN(bond).mul(tokenDecimalMultiplier),
309310
)
311+
await keepBonding.setInitialized(address, true)
310312
await pool.joinPool(address)
311313
}
312314

0 commit comments

Comments
 (0)