Skip to content

Commit

Permalink
Add check for invalid code id
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Sep 10, 2024
1 parent 0bfb499 commit fcc5c2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/propose_cl_vault_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ async function main() {
};
let contracts = readFileAsJSON(CONTRACTS);
const newCodeId = -1 // CHANGE CODE ID;
if (newCodeId == -1) {
throw new Error('Wrong code id!');
}
var msgs = [];
for (var contract of contracts) {
console.log(contract.name);
Expand Down

0 comments on commit fcc5c2f

Please sign in to comment.