We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7202688 commit 60d2f31Copy full SHA for 60d2f31
contracts/test/arbitration/index.ts
@@ -57,9 +57,9 @@ describe("DisputeKitClassic", async () => {
57
"Access not allowed: KlerosCore only."
58
);
59
60
- await expect(core.connect(deployer).createDispute(2, "0x00", { value: 1000 }))
61
- .to.emit(core, "DisputeCreation")
62
- .withArgs(0, deployer.address);
+ const tx = await core.connect(deployer).createDispute(2, "0x00", { value: 1000 });
+ expect(tx).to.emit(core, "DisputeCreation").withArgs(0, deployer.address);
+ expect(tx).to.emit(disputeKit, "DisputeCreation").withArgs(0, 2, "0x00");
63
64
await disputeKit.disputes(0).then((disputes) => {
65
expect(BigNumber.from(Object.values(disputes)[0])).to.equal(2);
0 commit comments