From f5590d552328fc7bba38aef56de80786691407ca Mon Sep 17 00:00:00 2001 From: npty Date: Thu, 11 Apr 2024 10:45:20 +0700 Subject: [PATCH] chore: update comment --- src/libs/TransactionRecoveryApi/helpers/getCommandId.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/TransactionRecoveryApi/helpers/getCommandId.ts b/src/libs/TransactionRecoveryApi/helpers/getCommandId.ts index caf21f9..f2bd141 100644 --- a/src/libs/TransactionRecoveryApi/helpers/getCommandId.ts +++ b/src/libs/TransactionRecoveryApi/helpers/getCommandId.ts @@ -2,7 +2,7 @@ import { arrayify, concat, hexlify, hexZeroPad, keccak256 } from "ethers/lib/uti const stringToCharcodeArray = (text: string) => Array.from(text, (char) => char.charCodeAt(0)); -// This function should be called from evm source chain only. It doesn't work properly if it's called from cosmos-based or others chains. +// This function is specifically designed for use with EVM-based chains. Its behavior may not be as expected if used with Cosmos-based chains or other types of chains. export const getCommandId = (messageId: string, sourceEventIndex: number, chainId: number) => { if (messageId.includes("-")) { return keccak256(concat([stringToCharcodeArray(messageId), hexlify(chainId)]));