Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Nov 21, 2024
1 parent 1658ef7 commit 9da8971
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@ contract Deploy is Script {

function writeContractAddresses() internal {
// create a deployment file if not exist
string memory dir = "deployment/";
string memory fileName = Strings.toString(chainId);
string memory path = string.concat("deployment/", fileName, ".json");
string memory path = string.concat(dir, fileName, ".json");

// create dir if it doesn't exist
vm.createDir(dir, true);

string memory contracts = string.concat(
"{",
' "LLMOracleRegistry": {',
Expand Down

0 comments on commit 9da8971

Please sign in to comment.