Skip to content

Commit

Permalink
update deploy task
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jun 7, 2024
1 parent 35b9d85 commit f2f9d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tasks/templates/messaging/tasks/deploy.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ const deployContract = async (
const wallet = initWallet(hre, networkName);

const connector = getAddress("connector", networkName);
const zetaToken = getAddress("zetaToken", networkName);
{{#if arguments.feesNative}}
const zetaTokenConsumer = getAddress("zetaTokenConsumerUniV3", networkName);
{{/if}}

const { abi, bytecode } = await hre.artifacts.readArtifact(contractName);
const factory = new ethers.ContractFactory(abi, bytecode, wallet);
const contract = await factory.deploy(connector{{#if arguments.feesNative}}, zetaTokenConsumer{{/if}}, { gasLimit });
const contract = await factory.deploy(connector, zetaToken{{#if arguments.feesNative}}, zetaTokenConsumer{{/if}}, { gasLimit });

await contract.deployed();
if (!json) {
Expand Down

0 comments on commit f2f9d69

Please sign in to comment.