From 9587e8183aeeadb8cf2792752dcf087487296986 Mon Sep 17 00:00:00 2001 From: karooolis Date: Fri, 11 Jul 2025 10:12:49 +0300 Subject: [PATCH 1/2] show input names, or types as backup --- .../worlds/[worldAddress]/interact/content/FunctionField.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content/FunctionField.tsx b/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content/FunctionField.tsx index 62873280a4..a104cbe6bf 100644 --- a/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content/FunctionField.tsx +++ b/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/content/FunctionField.tsx @@ -57,7 +57,7 @@ const formSchema = z.object({ const getInputLabel = (input: AbiParameter): string => { if (!("components" in input)) { - return input.type; + return input.name || input.type; } if (input.type === "tuple") { @@ -65,7 +65,7 @@ const getInputLabel = (input: AbiParameter): string => { } else if (input.type === "tuple[]") { return `${input.name}[]`; } - return input.type; + return input.name || input.type; }; export function FunctionField({ systemId, worldAbi, functionAbi, useSearchParamsArgs }: Props) { From aa4aeb8440b05fd83fb7ba8061f593fbe655001b Mon Sep 17 00:00:00 2001 From: Karolis Ramanauskas Date: Fri, 11 Jul 2025 10:16:06 +0300 Subject: [PATCH 2/2] Create green-experts-obey.md --- .changeset/green-experts-obey.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/green-experts-obey.md diff --git a/.changeset/green-experts-obey.md b/.changeset/green-experts-obey.md new file mode 100644 index 0000000000..0077394d9b --- /dev/null +++ b/.changeset/green-experts-obey.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/explorer": patch +--- + +Input parameter names are now displayed alongside method names in the "Interact" page.