fix env content
This commit is contained in:
parent
e0bd8afab4
commit
7fb5744903
|
@ -30,7 +30,8 @@ async function deployRegistry() {
|
|||
|
||||
|
||||
if (await !fs.existsSync("./.env")) await fs.writeFileSync("./.env");
|
||||
await fs.writeFileSync("./.env", '"'+networkID+'":"'+registryAddress+'"');
|
||||
let envContent = `REACT_APP_REGISTRY_ADDRESS='{"${networkID}":"${registryAddress}"}'`;
|
||||
await fs.writeFileSync("./.env", envContent);
|
||||
|
||||
logger.info("Registry deployed");
|
||||
logger.info("Ganache Chain ID: "+networkID);
|
||||
|
|
Loading…
Reference in New Issue