Skip to content
This repository was archived by the owner on Jan 4, 2024. It is now read-only.

Commit 12c338d

Browse files
committed
Enable node_modules contracts to be used
1 parent 0ec45a8 commit 12c338d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

verify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ const fetchInputJSON = async (artifact, options) => {
186186
}
187187

188188
for (const contractPath in inputJSON.sources) {
189-
const content = fs.readFileSync(contractPath, 'utf8')
189+
const absolutePath = require.resolve(contractPath)
190+
const content = fs.readFileSync(absolutePath, 'utf8')
190191
inputJSON.sources[contractPath] = { content }
191192
}
192193

0 commit comments

Comments
 (0)