Skip to content

Commit

Permalink
use exec sync
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Oct 18, 2023
1 parent 11ebe8c commit b4a71bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axelar-chains-config/src/utils/verifyContract.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { exec } = require('child_process');
const { execSync } = require('child_process');
const { writeFileSync } = require('fs');

/**
Expand Down Expand Up @@ -27,7 +27,7 @@ const verifyContract = (env, chain, contract, args, options = {}) => {
console.log(`Verifying contract ${contract} with args '${stringArgs.join(',')}'`);
console.log(cmd);

exec(cmd, { stdio: 'inherit' });
execSync(cmd, { stdio: 'inherit' });

console.log('Verified!');
};
Expand Down

0 comments on commit b4a71bf

Please sign in to comment.