Skip to content

Commit

Permalink
feat: use given contract path for remote modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs47 authored Aug 21, 2023
1 parent 527fef7 commit bde1621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm/deploy-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bde1621

Please sign in to comment.