Skip to content

Commit

Permalink
Fix: type errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Apr 24, 2024
1 parent 793a8d8 commit 27dd999
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/clients/Colony/ColonyClientV13.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default function getColonyClient(
* when creating new Colony version clients
*/
const colonyClientV13 = {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
...customEthersContractInstace,
interface: {
Expand Down
16 changes: 10 additions & 6 deletions src/clients/Colony/extensions/extensionsV13.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import { ColonyExtensionsV8 } from './extensionsV8';
import { ColonyExtensionsV9 } from './extensionsV9';
import { ColonyExtensionsV10 } from './extensionsV10';
import { ColonyExtensionsV11 } from './extensionsV11';
import { ColonyExtensionsV12 } from './extensionsV12';
import {
addExtensions as addExtensionsV13,
ColonyExtensionsV13,
ExtendedEstimateV13,
} from './extensionsV13';
addExtensions as addExtensionsV12,
ColonyExtensionsV12,
ExtendedEstimateV12,
} from './extensionsV12';

type ValidColony = IColonyV13;

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
type PreviousVersionsExtensions = ExtendedIColony<ValidColony> &
ColonyExtensionsV3<IColonyV6> &
Expand All @@ -49,6 +49,8 @@ export type ExtendedEstimateV13 = ExtendedEstimateV12;
*/
export type ColonyExtensionsV13<
T extends ValidColony
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
> = {} & PreviousVersionsExtensions;

/*
Expand All @@ -59,7 +61,9 @@ export const addExtensions = (
networkClient: ColonyNetworkClient,
): ColonyExtensionsV12<ValidColony> => {
// Add all extensions from v7, because these are also still valid
const extendedInstance = addExtensionsV13(
const extendedInstance = addExtensionsV12(
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
instance as PreviousVersionsExtensions,
networkClient,
) as ColonyExtensionsV13<ValidColony>;
Expand Down
2 changes: 2 additions & 0 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export const getBlockTime = async (
* @returns ethers Log array
*/
export const getLogs = async (
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
client: ContractClient | AwkwardRecoveryRoleEventClient,
filter: Filter,
options: LogOptions = {
Expand Down

0 comments on commit 27dd999

Please sign in to comment.