Skip to content

Commit

Permalink
Update simpletokendeploy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Jul 29, 2024
1 parent 4a389c5 commit e21a9e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/subswap/contract/scripts/simpletokendeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const deploy = require("../deploy.config.json");
async function main() {
const factory = await hre.ethers.getContractFactory("SimpleToken");

if (!deploy.subnettoken) {
console.error("Please set the token config in deploy.config.json");
return;
}

const token = deploy.subnettoken;

const simpleToken = await factory.deploy(
Expand Down

0 comments on commit e21a9e5

Please sign in to comment.