Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit 016e4b9

Browse files
committed
deploy: renames helper function
1 parent 91bcb62 commit 016e4b9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

deployment/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { UniversalAddress } from '@wormhole-foundation/sdk-definitions';
44

55
export const someoneIsDifferent = (values: ValueDiff[]) => values.some((value) => value.onChain.toString() !== value.offChain.toString() && Number(value.onChain) !== Number(value.offChain));
66

7-
export function logComparision(name: string, diffValues: any, log: LoggerFn) {
7+
export function logComparison(name: string, diffValues: any, log: LoggerFn) {
88

99
// If the values are the same, do nothing
1010
if (diffValues.onChain.toString() === diffValues.offChain.toString() || Number(diffValues.onChain) === Number(diffValues.offChain))

deployment/scripts/evm/TokenRouter/update-owner-assistant-token-router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TokenRouter } from "../../../contract-bindings";
2-
import { evm, getContractInstance, getContractAddress, logComparision } from "../../../helpers";
2+
import { evm, getContractInstance, getContractAddress, logComparison } from "../../../helpers";
33
import { getConfigurationDifferences } from "./utils";
44
import confirm from '@inquirer/confirm';
55

@@ -9,7 +9,7 @@ evm.runOnEvmsSequentially("update-owner-assistant-token-router", async (chain, s
99
const diff = await getConfigurationDifferences(chain);
1010

1111
log(`TokenRouter configuration differences on chain ${chain.chainId}:`);
12-
logComparision('OwnerAssistant', diff.ownerAssistant, log);
12+
logComparison('OwnerAssistant', diff.ownerAssistant, log);
1313

1414
if (diff.ownerAssistant.onChain === diff.ownerAssistant.offChain) {
1515
log(`No differences found on chain ${chain.chainId}`);

deployment/scripts/evm/TokenRouter/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ethers } from "ethers";
22
import { TokenRouterConfiguration } from "../../../config/config-types";
33
import { TokenRouter, TokenRouter__factory } from "../../../contract-bindings";
4-
import { ChainInfo, getChainConfig, LoggerFn, getDependencyAddress, writeDeployedContract, getContractAddress, getContractInstance, logComparision, someoneIsDifferent } from "../../../helpers";
4+
import { ChainInfo, getChainConfig, LoggerFn, getDependencyAddress, writeDeployedContract, getContractAddress, getContractInstance, logComparison, someoneIsDifferent } from "../../../helpers";
55
import { ERC20 } from "../../../contract-bindings/ERC20";
66
import { UniversalAddress } from "@wormhole-foundation/sdk-definitions";
77

@@ -119,13 +119,13 @@ export async function getConfigurationDifferences(chain: ChainInfo) {
119119
}
120120

121121
export function logDiff(differences: Record<string, any>, log: LoggerFn) {
122-
logComparision('cctpAllowance', differences.cctpAllowance, log);
122+
logComparison('cctpAllowance', differences.cctpAllowance, log);
123123

124124
const { enabled, maxAmount, baseFee, initAuctionFee } = differences.fastTransferParameters;
125125
if (someoneIsDifferent([enabled, maxAmount, baseFee, initAuctionFee])) {
126126
log('Fast transfer parameters:');
127127
for (const [key, value] of Object.entries(differences.fastTransferParameters)) {
128-
logComparision(key, value, log);
128+
logComparison(key, value, log);
129129
}
130130
}
131131
}

0 commit comments

Comments
 (0)