From 546b507982be4c2282f0cfbd0c1595326733c0dc Mon Sep 17 00:00:00 2001 From: marc2332 Date: Wed, 18 Dec 2024 09:35:26 +0100 Subject: [PATCH] fix(explorer): Fix 'not a correct flattenable data' for string arguments in txs --- .../transaction-result/programmable-transaction-view/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/explorer/src/pages/transaction-result/programmable-transaction-view/utils.ts b/apps/explorer/src/pages/transaction-result/programmable-transaction-view/utils.ts index 92e2e32d939..6496b0c9e12 100644 --- a/apps/explorer/src/pages/transaction-result/programmable-transaction-view/utils.ts +++ b/apps/explorer/src/pages/transaction-result/programmable-transaction-view/utils.ts @@ -24,10 +24,11 @@ export function flattenIotaArguments(data: (IotaArgument | IotaArgument[])[]): s } else if ('NestedResult' in value) { return `NestedResult(${value.NestedResult[0]}, ${value.NestedResult[1]})`; } + } else if (typeof value === 'string'){ + return `Address(${value})`; } else { throw new Error('Not a correct flattenable data'); } - return ''; }) .join(', '); }