From be80b2b08b8656418f297f3c4b8713e43a5b6a45 Mon Sep 17 00:00:00 2001 From: Brian Li Date: Thu, 2 May 2024 14:55:25 -0400 Subject: [PATCH] Support nested vector in explorer (#681) * Support nested vector in explorer * Comment and types * Comments and JSON.parse * Remove console --------- Co-authored-by: Alexzander Stone --- src/pages/Account/Tabs/ModulesTab/Contract.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/Account/Tabs/ModulesTab/Contract.tsx b/src/pages/Account/Tabs/ModulesTab/Contract.tsx index 665c37a1..d951d293 100644 --- a/src/pages/Account/Tabs/ModulesTab/Contract.tsx +++ b/src/pages/Account/Tabs/ModulesTab/Contract.tsx @@ -36,10 +36,7 @@ import { import {useLogEventWithBasic} from "../../hooks/useLogEventWithBasic"; import {ContentCopy} from "@mui/icons-material"; import StyledTooltip from "../../../../components/StyledTooltip"; -import { - deserializeVector, - encodeInputArgsForViewRequest, -} from "../../../../utils"; +import {encodeInputArgsForViewRequest} from "../../../../utils"; import {accountPagePath} from "../../Index"; type ContractFormType = { @@ -293,7 +290,7 @@ function RunContractForm({ ? Array.from(new HexString(arg).toUint8Array()).map((x) => x.toString(), ) - : deserializeVector(arg); + : JSON.parse(arg); } else if (type.startsWith("0x1::option::Option")) { arg ? {vec: [arg]} : undefined; } else return arg;