Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
channing-magiceden committed Feb 15, 2024
1 parent fd1af96 commit 4f37099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export const deploy = async (
args: IDeployParams,
hre: HardhatRuntimeEnvironment,
) => {
await checkCodeVersion();
if (!await checkCodeVersion()) {
return;
}

// Compile again in case we have a coverage build (binary too large to deploy)
await hre.run('compile');
Expand Down
3 changes: 2 additions & 1 deletion scripts/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ export const checkCodeVersion = async () => {
if (localLatestCommit !== remoteLatestCommit) {
console.log("🟡 Warning: you are NOT using the latest version of the code. Please run `git pull` on main branch to update the code.");
if (!(await confirm({ message: 'Proceed anyway?', default: false }))) {
process.exit(0);
return false;
};
}
return true;
}

export const estimateGas = async (hre: HardhatRuntimeEnvironment, tx: Deferrable<TransactionRequest>) => {
Expand Down

0 comments on commit 4f37099

Please sign in to comment.