diff --git a/src/utils/calldata/index.ts b/src/utils/calldata/index.ts index 09971fdd9..4e962e41b 100644 --- a/src/utils/calldata/index.ts +++ b/src/utils/calldata/index.ts @@ -164,8 +164,8 @@ export class CallData { const oe = Array.isArray(o) ? [o.length.toString(), ...o] : o; return Object.entries(oe).flatMap(([k, v]) => { let value = v; - if (isLongText(value)) value = splitLongString(value); if (k === 'entrypoint') value = getSelectorFromName(value); + else if (isLongText(value)) value = splitLongString(value); const kk = Array.isArray(oe) && k === '0' ? '$$len' : k; if (isBigInt(value)) return [[`${prefix}${kk}`, felt(value)]]; if (Object(value) === value) {