From f362dd0f5e85db47bc5787252d53ac491aad2458 Mon Sep 17 00:00:00 2001 From: MirandaWood Date: Tue, 21 Feb 2023 15:18:03 +0000 Subject: [PATCH] feat: use def account address for constructor --- src/codeGenerators/orchestration/files/toOrchestration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codeGenerators/orchestration/files/toOrchestration.ts b/src/codeGenerators/orchestration/files/toOrchestration.ts index 70b40d7c4..edcc5ab4f 100644 --- a/src/codeGenerators/orchestration/files/toOrchestration.ts +++ b/src/codeGenerators/orchestration/files/toOrchestration.ts @@ -326,9 +326,9 @@ const prepareMigrationsFile = (file: localFile, node: any) => { constructorAddrParams.forEach(name => { // we have an address input which is likely not a another contract // we just replace it with the default address - customImports += `const ${name} = '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'; \n`; + customImports += `const ${name} = process.env.DEFAULT_ACCOUNT; \n`; logger.warn( - `Looks like you are using a constructor with a public address ${name}. This will be set to the default ganache test address. + `Looks like you are using a constructor with a public address ${name}. This will be set to the default account address. If you'd like to change it, edit the variable in migrations/2_shield.js in the output zApp.` ); });