Skip to content

Commit

Permalink
Formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesduncombe committed Apr 4, 2024
1 parent a0a22de commit 588a177
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ export const abiElementToSignature = (abiElement: JsonFragment): string =>
export type AbiIgnoreList = ReadonlyArray<[Readonly<string>, Readonly<string>]>;
export const abiFilter =
(ignoreList: AbiIgnoreList) =>
(abiElement: any, index: number, abi: any, contractName: string) =>
// Find the first filter that matches...
!ignoreList.some(
([nameMatcher, sig]) =>
// If the name matches the name matcher and the function signature, we can set it to "ignore".
contractName.match(nameMatcher) &&
abiElementToSignature(abiElement) === sig
);
(abiElement: any, index: number, abi: any, contractName: string) =>
// Find the first filter that matches...
!ignoreList.some(
([nameMatcher, sig]) =>
// If the name matches the name matcher and the function signature, we can set it to "ignore".
contractName.match(nameMatcher) &&
abiElementToSignature(abiElement) === sig
);

export const fromBaseUnit = (
amount: BigNumber | string | number,
Expand Down
2 changes: 1 addition & 1 deletion tasks/issuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ task("issuer-deploy", "Deploys the main Issuer contract")
await deployIssuer(hre, member);
});

interface IssuerUpdateFacetsParams {}
interface IssuerUpdateFacetsParams { }

task("issuer-update-facets", "Updates facets of our Issuer").setAction(
async (_params: IssuerUpdateFacetsParams, hre) => {
Expand Down
4 changes: 2 additions & 2 deletions tasks/marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Marketplace } from "../typechain/hardhat-diamond-abi/HardhatDiamondABI.

// Tasks.

interface MarketplaceDeployParams {}
interface MarketplaceDeployParams { }

task("marketplace-deploy", "Deploys the main Marketplace contract").setAction(
async (_params: MarketplaceDeployParams, hre) => {
Expand All @@ -15,7 +15,7 @@ task("marketplace-deploy", "Deploys the main Marketplace contract").setAction(
}
);

interface MarketplaceUpdateFacetsParams {}
interface MarketplaceUpdateFacetsParams { }

task(
"marketplace-update-facets",
Expand Down

0 comments on commit 588a177

Please sign in to comment.