Skip to content

Commit

Permalink
Merge pull request #186 from EYBlockchain/miranda/default-addr-fix
Browse files Browse the repository at this point in the history
Use env variable address as constructor address input
  • Loading branch information
MirandaWood authored Mar 28, 2023
2 parents 88d3fc3 + f362dd0 commit a7ef749
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 @@ -327,9 +327,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 a7ef749

Please sign in to comment.