Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Apr 10, 2024
1 parent 2b9b332 commit 1091e3b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contracts/utils/testFixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ function createDeployAndFundFixture({
mocks = {}, // e.g. { Contract: MockContract }
} = {}) {
const fixture = async () => {
const time = Date.now();
const contracts = await deploymentHelper.deployLiquityCore(mocks);
await deploymentHelper.connectCoreContracts(contracts);
contracts.priceFeed = contracts.priceFeedTestnet;
await fundAccounts(accounts, contracts.WETH);
return {
contracts,
...await callback(contracts),
};
const callbackResult = await callback(contracts);
return { contracts, ...callbackResult };
};
return () => loadFixture(fixture);
}
Expand Down

0 comments on commit 1091e3b

Please sign in to comment.