From 0ffc76081baffc26e1b21344c3651bc27fccf6d3 Mon Sep 17 00:00:00 2001 From: satan Date: Fri, 12 Jul 2024 10:11:39 +0800 Subject: [PATCH] fix: export named result of address array --- src/utils/abi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/abi.ts b/src/utils/abi.ts index 74f1d472..0f965e69 100644 --- a/src/utils/abi.ts +++ b/src/utils/abi.ts @@ -212,7 +212,7 @@ export function decodeParamsV2ByABI(funABI: FunctionFragment | AbiInputsType, da convertAddresses(result[i]); // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore - if (name) convertAddresses(result[i]); + if (name) result[name] = convertAddresses(result[i]); } else if (type.indexOf('tuple') === 0) { if (extractSize(type)) { const dimension = extractArrayDim(type);