diff --git a/packages/linea-ens-contracts/scripts/transferOwnershipToSafe.ts b/packages/linea-ens-contracts/scripts/transferOwnershipToSafe.ts index 4cfe953fb..15d07f891 100644 --- a/packages/linea-ens-contracts/scripts/transferOwnershipToSafe.ts +++ b/packages/linea-ens-contracts/scripts/transferOwnershipToSafe.ts @@ -15,6 +15,9 @@ const contractsToTransfer = [ 'PohVerifier', ] +const ETH_NODE = + '0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae' + async function main(hre: HardhatRuntimeEnvironment) { const network = hre.network.name const { deployer, owner } = await hre.getNamedAccounts() @@ -41,6 +44,21 @@ async function main(hre: HardhatRuntimeEnvironment) { throw 'Network not supported' } + // Transfer eth node ownernship to safe + console.log('Transferring ETH node ownership to Linea Safe') + const ensRegistryDeployed = deployments['ENSRegistry'] + const ensRegistry = new Contract( + ensRegistryDeployed.address, + ensRegistryDeployed.abi, + signer, + ) + + const tx = await ensRegistry.setOwner(ETH_NODE, lineaSafeAddr) + await tx.wait(1) + + console.log(`ETH node ownership transferred to ${lineaSafeAddr}`) + + console.log(`Transferring contracts's ownership to Linea Safe`) for (const contractToTransfer of contractsToTransfer) { const currentContract = deployments[contractToTransfer] console.log(contractToTransfer)