UNPKG

@nomiclabs/hardhat-waffle

Version:

Hardhat plugin to test smart contracts with Waffle

14 lines (11 loc) 358 B
import path from "path"; export function getLinkFunction() { const wafflePath = require.resolve("ethereum-waffle"); const waffleCompilerPath = path.dirname( require.resolve("@ethereum-waffle/compiler", { paths: [wafflePath], }) ); const waffleCompiler = require(path.join(waffleCompilerPath, "link")); return waffleCompiler.link; }