From f4d33b74890e06ad4b3baa8930ac956523a273cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Sousa?= Date: Mon, 21 Aug 2023 20:04:23 +0100 Subject: [PATCH] use given contract path if for a remote module --- evm/deploy-contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/deploy-contract.js b/evm/deploy-contract.js index 29eb9fa3..c2b0f7d3 100644 --- a/evm/deploy-contract.js +++ b/evm/deploy-contract.js @@ -177,7 +177,7 @@ async function deploy(options, chain, config) { printInfo('Contract name', contractName); - const contractPath = artifactPath + contractName + '.sol/' + contractName + '.json'; + const contractPath = artifactPath.charAt(0) === '@' ? artifactPath : artifactPath + contractName + '.sol/' + contractName + '.json'; printInfo('Contract path', contractPath); const contractJson = require(contractPath);