Skip to content

Commit 20a5eb6

Browse files
committed
test: expecting a ruling event emitted by KlerosCore
1 parent f326325 commit 20a5eb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contracts/test/integration/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("Integration tests", async () => {
6565
homeGateway = (await ethers.getContract("HomeGatewayToEthereum")) as HomeGatewayToEthereum;
6666
});
6767

68-
it("Honest Claim - No Challenge - Bridger paid", async () => {
68+
it("Resolves a dispute on the home chain with no appeal", async () => {
6969
const arbitrationCost = ONE_TENTH_ETH.mul(3);
7070
const [bridger, challenger, relayer] = await ethers.getSigners();
7171

@@ -170,7 +170,8 @@ describe("Integration tests", async () => {
170170

171171
const tx4 = await core.executeRuling(0);
172172
console.log("Ruling executed on KlerosCore");
173-
expect(tx4).to.emit(arbitrable, "Ruling").withArgs(foreignGateway.address, 1, 0);
173+
expect(tx4).to.emit(core, "Ruling").withArgs(homeGateway.address, 0, 0);
174+
expect(tx4).to.emit(arbitrable, "Ruling").withArgs(foreignGateway.address, 1, 0); // The ForeignGateway starts counting disputeID from 1.
174175
});
175176

176177
async function mineBlocks(n) {

0 commit comments

Comments
 (0)