Skip to content

Commit

Permalink
fix path format
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgj committed Dec 19, 2024
1 parent 2d3adb8 commit 20a95fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PRIVATE_KEY=<your private key>

ENVIROMENT=test
CREATE3_FACTORY_ADDRESS=0x93FEC2C00BfE902F733B57c5a6CeeD7CD1384AE1 # Public CREATE3 factory address

# Mainnet RPCs
Expand Down
7 changes: 5 additions & 2 deletions scripts/configure_bfp.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ async function main() {
/**
* Setup Contracts from Json file
*/
const environment = process.env.ENVIRONMENT || "staging";
const data = await fs.readFile(`./deployments/${network}.${environment}.json`, 'utf-8');
const deploymentPath = process.env.ENVIRONMENT != 'prod' ?
`./deployments/${network}.${environment}.json` :
`./deployments/${network}.json`;

const data = await fs.readFile(deploymentPath, 'utf-8');
const contracts = JSON.parse(data);
/**
* Setup Registry
Expand Down

0 comments on commit 20a95fe

Please sign in to comment.