Skip to content

Commit

Permalink
feat: use def account address for constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MirandaWood committed Feb 21, 2023
1 parent b1c54cc commit f362dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codeGenerators/orchestration/files/toOrchestration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
});
Expand Down

0 comments on commit f362dd0

Please sign in to comment.