Skip to content

Commit

Permalink
Fix for hardhat tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Nov 23, 2023
1 parent d83210f commit f6b0b5e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions contracts/test/bridge-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ describe("Bridge", function () {
busL1 = await MessageBus.deploy();
busL2 = await MessageBus.deploy();

messengerL1 = await Messenger.deploy(busL1.address);
messengerL2 = await Messenger.deploy(busL2.address);

bridgeL1 = await L1Bridge.deploy(messengerL1.address);
bridgeL2 = await L2Bridge.deploy(messengerL2.address, bridgeL1.address);
messengerL1 = await Messenger.deploy();
await messengerL1.initialize(busL1.address);
messengerL2 = await Messenger.deploy();
await messengerL2.initialize(busL2.address)

bridgeL1 = await L1Bridge.deploy();
bridgeL1.initialize(messengerL1.address);
bridgeL2 = await L2Bridge.deploy();
bridgeL2.initialize(messengerL2.address, bridgeL1.address);

const tx = await bridgeL1.setRemoteBridge(bridgeL2.address);
await tx.wait();
Expand Down

0 comments on commit f6b0b5e

Please sign in to comment.