Skip to content

Commit

Permalink
fix: provide paymaster params for the beacon deployment (#1523)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko Arambasic <[email protected]>
  • Loading branch information
kiriyaga-txfusion and kiriyaga authored Nov 1, 2024
1 parent 8bdf44a commit 6453bfa
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Deployment & DeployTransaction> = await deploy(
upgradeableBeaconFactory,
impl,
opts.initialOwner ?? wallet.address,
customDataBeacon,
);

if (!quiet) {
console.info(chalk.green('Beacon deployed at: ', beaconDeployment.address));
}
Expand Down

0 comments on commit 6453bfa

Please sign in to comment.