Skip to content

Commit

Permalink
Registare PaymasterController in the ContractManager
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 23, 2024
1 parent 1c8d9a3 commit dea7892
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migrations/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ class SkaleManagerUpgrader extends Upgrader {
) as unknown as PaymasterController;
await paymasterController.deploymentTransaction()?.wait();

// Register in the ContractManager
this.transactions.push(Transaction.from({
to: await contractManager.getAddress(),
data: contractManager.interface.encodeFunctionData(
"setContractsAddress",
["PaymasterController", await paymasterController.getAddress()]
)
}));

const ima = process.env.IMA ?? "0x8629703a9903515818C2FeB45a6f6fA5df8Da404";
const marionette = process.env.MARIONETTE ?? "0xef777804e94eac176bbdbb3b3c9da06de87227ba";
const paymaster = process.env.PAYMASTER ?? "0x0d66cA00CbAD4219734D7FDF921dD7Caadc1F78D";
Expand Down

0 comments on commit dea7892

Please sign in to comment.