Skip to content

Commit

Permalink
chore: resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyyconsensys committed Dec 10, 2024
1 parent 817e874 commit 4699e07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/starknet-snap/src/utils/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4699e07

Please sign in to comment.