diff --git a/deploy/012-transfer-pools-ownership.ts b/deploy/012-transfer-pools-ownership.ts index 1a2ca23cc..01e97f3d1 100644 --- a/deploy/012-transfer-pools-ownership.ts +++ b/deploy/012-transfer-pools-ownership.ts @@ -17,7 +17,7 @@ const transfer2StepOwnerships = async (contractNames: string[], targetOwner: str const pendingOwner = await contract.pendingOwner(); let tx; - if (owner.toLowerCase() !== targetOwner.toLowerCase() && pendingOwner.toLowerCase() !== targetOwner.toLowerCase()) { + if (owner !== targetOwner && pendingOwner !== targetOwner) { tx = await contract.transferOwnership(targetOwner); await tx.wait(1); const pendingOwner = await contract.pendingOwner(); @@ -36,7 +36,7 @@ const transferSingleStepOwnerships = async (contractNames: string[], targetOwner const owner = await contract.owner(); let tx; - if (owner.toLowerCase() !== targetOwner.toLowerCase()) { + if (owner !== targetOwner) { tx = await contract.transferOwnership(targetOwner); await tx.wait(1); const newOwner = await contract.owner(); diff --git a/deploy/018-native-token-gateway.ts b/deploy/018-native-token-gateway.ts index aa1c36cb9..b56570ff2 100644 --- a/deploy/018-native-token-gateway.ts +++ b/deploy/018-native-token-gateway.ts @@ -133,7 +133,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const nativeTokenGateway = await ethers.getContract(`NativeTokenGateway_${vWNativeInfo.name}`); const targetOwner = preconfiguredAddresses.NormalTimelock || deployer; - if (hre.network.live && (await nativeTokenGateway.owner()).toLowerCase() !== targetOwner.toLowerCase()) { + if (hre.network.live && (await nativeTokenGateway.owner()) !== targetOwner) { const tx = await nativeTokenGateway.transferOwnership(targetOwner); await tx.wait(); console.log(`Transferred ownership of NativeTokenGateway_${vWNativeInfo.name} to Timelock`);