Skip to content

Commit

Permalink
test: update createVault calls to include deposit contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
DiRaiks committed Mar 2, 2025
1 parent 118163c commit c1f271d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/0.8.25/vaults/vaulthub/vaulthub.forceExit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("VaultHub.sol:forceExit", () => {
vaultFactory = await ethers.deployContract("VaultFactory__MockForVaultHub", [await stakingVaultImpl.getAddress()]);

const vaultCreationTx = (await vaultFactory
.createVault(user, user)
.createVault(user, user, await depositContract.getAddress())
.then((tx) => tx.wait())) as ContractTransactionReceipt;

const events = findEvents(vaultCreationTx, "VaultCreated");
Expand Down Expand Up @@ -183,7 +183,7 @@ describe("VaultHub.sol:forceExit", () => {
// https://github.com/lidofinance/core/pull/933#discussion_r1954876831
it("works for a synthetic example", async () => {
const vaultCreationTx = (await vaultFactory
.createVault(user, user)
.createVault(user, user, await depositContract.getAddress())
.then((tx) => tx.wait())) as ContractTransactionReceipt;

const events = findEvents(vaultCreationTx, "VaultCreated");
Expand Down
2 changes: 1 addition & 1 deletion test/0.8.25/vaults/vaulthub/vaulthub.hub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("VaultHub.sol:hub", () => {

async function createVault(factory: VaultFactory__MockForVaultHub) {
const vaultCreationTx = (await factory
.createVault(await user.getAddress(), await user.getAddress())
.createVault(await user.getAddress(), await user.getAddress(), await depositContract.getAddress())
.then((tx) => tx.wait())) as ContractTransactionReceipt;

const events = findEvents(vaultCreationTx, "VaultCreated");
Expand Down

0 comments on commit c1f271d

Please sign in to comment.