Skip to content

Commit

Permalink
properly type function arg
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyTM committed Nov 5, 2021
1 parent 9a1b71b commit 288efc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type StackTraceParserT from "stacktrace-parser";
import {
HardhatArguments,
HardhatConfig,
SolcUserConfig,
HardhatUserConfig,
} from "../../../types";
import { HardhatContext } from "../../context";
import { SUPPORTED_SOLIDITY_VERSION_RANGE } from "../../hardhat-network/stack-traces/solidityTracer";
Expand Down Expand Up @@ -237,13 +237,13 @@ Learn more about compiler configuration at https://hardhat.org/config"
}
}

function checkUnsupportedRemappings(userConfig: any) {
function checkUnsupportedRemappings(userConfig: HardhatUserConfig) {
if (typeof userConfig.solidity === "object") {
let remappings: boolean;
if ("compilers" in userConfig.solidity) {
remappings =
userConfig.solidity.compilers.filter(
({ settings }: SolcUserConfig) => settings?.remappings !== undefined
({ settings }) => settings?.remappings !== undefined
).length > 0;
} else {
remappings = userConfig.solidity.settings?.remappings !== undefined;
Expand Down

0 comments on commit 288efc2

Please sign in to comment.