Skip to content

Commit

Permalink
test: adapted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Mar 1, 2024
1 parent 41208df commit 50085f2
Show file tree
Hide file tree
Showing 11 changed files with 417 additions and 118 deletions.
9 changes: 6 additions & 3 deletions packages/contracts/deploy/20_new_version/22_setup_conclude.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {PLUGIN_SETUP_CONTRACT_NAME} from '../../plugin-settings';
import {AdminSetup__factory, Admin__factory} from '../../typechain';
import {MultisigSetup__factory, Multisig__factory} from '../../typechain';
import {DeployFunction} from 'hardhat-deploy/types';
import {HardhatRuntimeEnvironment} from 'hardhat/types';
import path from 'path';
Expand All @@ -17,9 +17,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

// Get the plugin setup address
const setupDeployment = await deployments.get(PLUGIN_SETUP_CONTRACT_NAME);
const setup = AdminSetup__factory.connect(setupDeployment.address, deployer);
const setup = MultisigSetup__factory.connect(
setupDeployment.address,
deployer
);
// Get the plugin implementation address
const implementation = Admin__factory.connect(
const implementation = Multisig__factory.connect(
await setup.implementation(),
deployer
);
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const config: HardhatUserConfig = {
hardhat: {
throwOnTransactionFailures: true,
throwOnCallFailures: true,
blockGasLimit: BigNumber.from(10).pow(6).mul(30).toNumber(), // 30 million, really high to test some things that are only possible with a higher block gas limit
blockGasLimit: BigNumber.from(10).pow(6).mul(300).toNumber(), // 300 million, really high to test some things that are only possible with a higher block gas limit
gasPrice: BigNumber.from(10).pow(9).mul(150).toNumber(), // 150 gwei
accounts: getHardhatNetworkAccountsConfig(
Object.keys(namedAccounts).length
Expand Down
Loading

0 comments on commit 50085f2

Please sign in to comment.