From 4699e077924edbf10b38a45e3c8f1877b378a1b0 Mon Sep 17 00:00:00 2001 From: stanleyyuen <102275989+stanleyyconsensys@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:41:35 +0800 Subject: [PATCH] chore: resolve comment --- packages/starknet-snap/src/utils/transaction.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/starknet-snap/src/utils/transaction.ts b/packages/starknet-snap/src/utils/transaction.ts index 7ec2c42f..38e0d419 100644 --- a/packages/starknet-snap/src/utils/transaction.ts +++ b/packages/starknet-snap/src/utils/transaction.ts @@ -60,14 +60,14 @@ export function transactionVersionToFeeToken(txnVersion: string): FeeToken { * If the selector is not known, return the selector. * * @param selector - The transaction selector. - * @returns The meaninful name of the selector if it is known, otherwise return the selector. + * @returns The meaningful name of the selector if it is known, otherwise return the selector. */ -export function transactionSelectorHexToName(selector: string): string { +export function transactionSelectorToName(selector: string): string { switch (selector.toLowerCase()) { - case ContractFuncName.Transfer.toLowerCase(): + case ContractFuncName.Transfer: case TRANSFER_SELECTOR_HEX.toLowerCase(): return ContractFuncName.Transfer; - case ContractFuncName.Upgrade.toLowerCase(): + case ContractFuncName.Upgrade: case UPGRADE_SELECTOR_HEX.toLowerCase(): return ContractFuncName.Upgrade; default: