Skip to content

Commit

Permalink
fix: allow custom output dir for script output
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Oct 8, 2024
1 parent ef253b6 commit 273e1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/Migrate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ contract Migrate2 is Migrate {
// "Mainnet", "Arbitrum", "Optimism", "Base"
string memory output = vm.serializeString(obj1, "network", "Mainnet");

vm.writeJson(output, "address-provider.json");
string memory outDir = vm.envOr("OUT_DIR", string("."));
vm.writeJson(output, string(abi.encodePacked(outDir, "/address-provider.json")));
}
}

0 comments on commit 273e1d2

Please sign in to comment.