Skip to content

Commit

Permalink
refactor: tests (#2)
Browse files Browse the repository at this point in the history
* refactor: plugin tests

* refactor: separated upgradeability tests

* refactor: remaining tests

* refactor: remove storage.ts

* refactor: improved tests and comments

* doc: more comment improvements

* fix: wrong variable name in test

* fix: linter error

* refactor: use typechain struct

* fix: wrong versioning numbers

* test: added missing test

* doc: remove todo
  • Loading branch information
heueristik committed Mar 7, 2024
1 parent b739c77 commit c456d07
Show file tree
Hide file tree
Showing 12 changed files with 2,366 additions and 1,343 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const config: HardhatUserConfig = {
throwOnTransactionFailures: true,
throwOnCallFailures: true,
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
gasPrice: BigNumber.from(10).pow(9).mul(300).toNumber(), // 300 gwei
accounts: getHardhatNetworkAccountsConfig(
Object.keys(namedAccounts).length
),
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/src/mocks/Migration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pragma solidity ^0.8.8;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

// Regression Testing
import {Multisig as Multisig_v1_0_0} from "@aragon/osx-v1.0.0/plugins/governance/multisig/Multisig.sol";
import {Multisig as Multisig_v1_3_0} from "@aragon/osx-v1.3.0/plugins/governance/multisig/Multisig.sol";
import {Multisig as Multisig_v1_1} from "@aragon/osx-v1.0.0/plugins/governance/multisig/Multisig.sol";
import {Multisig as Multisig_v1_2} from "@aragon/osx-v1.3.0/plugins/governance/multisig/Multisig.sol";

import {ProxyFactory} from "@aragon/osx-commons-contracts/src/utils/deployment/ProxyFactory.sol";

Expand Down
Loading

0 comments on commit c456d07

Please sign in to comment.