Skip to content

Commit

Permalink
chore: remove governable contract
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsambugs committed Feb 15, 2024
1 parent e3aa8a4 commit 3969ccd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 129 deletions.
57 changes: 0 additions & 57 deletions solidity/contracts/utils/Governable.sol

This file was deleted.

67 changes: 0 additions & 67 deletions solidity/interfaces/utils/IGovernable.sol

This file was deleted.

8 changes: 6 additions & 2 deletions test/utils/bdd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Suite, SuiteFunction } from 'mocha';
import { Suite, SuiteFunction, it, beforeEach, TestFunction, Func } from 'mocha';

export const then = it;
export const then = (title: string, fn?: Func) => {
if (typeof title === 'string') {
it(title, fn);
}
};
export const given = beforeEach;
export const when: SuiteFunction = <SuiteFunction>function (title: string, fn: (this: Suite) => void) {
context('when ' + title, fn);
Expand Down
3 changes: 0 additions & 3 deletions test/utils/behaviours.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ import chaiAsPromised from 'chai-as-promised';
import chai from 'chai';
import { Contract, ContractFactory, ContractInterface, Signer, Wallet } from 'ethers';
import { TransactionResponse } from '@ethersproject/abstract-provider';
import { Provider } from '@ethersproject/providers';
import { getStatic } from 'ethers/lib/utils';
import { wallet } from '.';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { given, when, then } from './bdd';

chai.use(chaiAsPromised);

type Impersonator = Signer | Provider | string;

export const checkTxRevertedWithMessage = async ({
tx,
message,
Expand Down

0 comments on commit 3969ccd

Please sign in to comment.