diff --git a/packages/hardhat-zksync-upgradable/src/proxy-deployment/deploy-beacon.ts b/packages/hardhat-zksync-upgradable/src/proxy-deployment/deploy-beacon.ts index 6ec18692b..102ea1445 100644 --- a/packages/hardhat-zksync-upgradable/src/proxy-deployment/deploy-beacon.ts +++ b/packages/hardhat-zksync-upgradable/src/proxy-deployment/deploy-beacon.ts @@ -89,13 +89,23 @@ async function deployProxyBeacon( console.info(chalk.green('Beacon impl deployed at', impl)); } + const customDataBeacon = { + customData: { + salt: opts.salt, + paymasterParams: opts.paymasterParams, + ...opts.otherCustomData, + }, + }; + const upgradeableBeaconFactory = await getUpgradeableBeaconFactory(hre, wallet); const beaconDeployment: Required = await deploy( upgradeableBeaconFactory, impl, opts.initialOwner ?? wallet.address, + customDataBeacon, ); + if (!quiet) { console.info(chalk.green('Beacon deployed at: ', beaconDeployment.address)); }