@@ -104,7 +104,7 @@ Generated by [AVA](https://avajs.dev).
104
104
␊
105
105
export default buildModule("MyTokenModule", (m) => {␊
106
106
␊
107
- // TODO: Set addresses for the contract arguments below␊
107
+ // TODO: Set values for the constructor arguments below␊
108
108
const myToken = m.contract("MyToken", [recipient, defaultAdmin, pauser, minter]);␊
109
109
␊
110
110
return { myToken };␊
@@ -263,7 +263,7 @@ Generated by [AVA](https://avajs.dev).
263
263
async function main() {␊
264
264
const ContractFactory = await ethers.getContractFactory("MyToken");␊
265
265
␊
266
- // TODO: Set addresses for the contract arguments below␊
266
+ // TODO: Set values for the constructor arguments below␊
267
267
const instance = await upgrades.deployProxy(ContractFactory, [tokenBridge_, recipient, initialOwner]);␊
268
268
await instance.waitForDeployment();␊
269
269
␊
@@ -370,7 +370,7 @@ Generated by [AVA](https://avajs.dev).
370
370
async function main() {␊
371
371
const ContractFactory = await ethers.getContractFactory("MyToken");␊
372
372
␊
373
- // TODO: Set addresses for the contract arguments below␊
373
+ // TODO: Set values for the constructor arguments below␊
374
374
const instance = await upgrades.deployProxy(ContractFactory, [initialOwner]);␊
375
375
await instance.waitForDeployment();␊
376
376
␊
@@ -462,7 +462,7 @@ Generated by [AVA](https://avajs.dev).
462
462
␊
463
463
export default buildModule("MyTokenModule", (m) => {␊
464
464
␊
465
- // TODO: Set addresses for the contract arguments below␊
465
+ // TODO: Set values for the constructor arguments below␊
466
466
const myToken = m.contract("MyToken", [initialOwner]);␊
467
467
␊
468
468
return { myToken };␊
@@ -543,7 +543,7 @@ Generated by [AVA](https://avajs.dev).
543
543
␊
544
544
export default buildModule("MyAccountModule", (m) => {␊
545
545
␊
546
- // TODO: Set addresses for the contract arguments below␊
546
+ // TODO: Set values for the constructor arguments below␊
547
547
const myAccount = m.contract("MyAccount", [signer]);␊
548
548
␊
549
549
return { myAccount };␊
@@ -641,8 +641,8 @@ Generated by [AVA](https://avajs.dev).
641
641
async function main() {␊
642
642
const ContractFactory = await ethers.getContractFactory("MyAccount");␊
643
643
␊
644
- // TODO: Set addresses for the contract arguments below␊
645
- const instance = await upgrades.deployProxy(ContractFactory, [signer], { unsafeAllow: 'constructor' });␊
644
+ // TODO: Set values for the constructor arguments below␊
645
+ const instance = await upgrades.deployProxy(ContractFactory, [signer], { unsafeAllow: [ 'constructor'] });␊
646
646
await instance.waitForDeployment();␊
647
647
␊
648
648
console.log(\`Proxy deployed to ${await instance.getAddress()}\`);␊
@@ -664,7 +664,7 @@ Generated by [AVA](https://avajs.dev).
664
664
␊
665
665
const signer = (await ethers.getSigners())[0].address;␊
666
666
␊
667
- const instance = await upgrades.deployProxy(ContractFactory, [signer], { unsafeAllow: 'constructor' });␊
667
+ const instance = await upgrades.deployProxy(ContractFactory, [signer], { unsafeAllow: [ 'constructor'] });␊
668
668
await instance.waitForDeployment();␊
669
669
});␊
670
670
});␊
0 commit comments