Skip to content

Commit

Permalink
chore: write info file when contracts are deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 committed Sep 12, 2022
1 parent 8445bff commit d8f61f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"desmoHub":"0x10fFd14a2dd48Cc0d9eB00e5d2c0957aCB97F3Cd","desmo":"0xb4E5d4772a45EeB766bb612939FE8f5128Fea531"}
6 changes: 6 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// When running the script with `npx hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
import { writeFileSync } from "fs";
import { ethers } from "hardhat";

async function main() {
Expand Down Expand Up @@ -31,6 +32,11 @@ async function main() {

console.log("Desmo address:", desmoLDContract.address);
console.log("Desmo deployed");

writeFileSync("./deployed.json", JSON.stringify({
desmoHub: desmoHub.address,
desmo: desmoLDContract.address
}));
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down

0 comments on commit d8f61f5

Please sign in to comment.