From 0382d42a99371692d8e167008f855e7d8fe8de6e Mon Sep 17 00:00:00 2001 From: kumaryash90 Date: Thu, 8 Jan 2026 15:23:52 +0000 Subject: [PATCH] Enable multiple ref params for bytes input (#8610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on modifying the `Button` component in the `decoded-input-set.tsx` file to enhance its functionality based on certain conditions related to `param.type` and `fields`. ### Detailed summary - Updated the `Button` component to disable it when `param.type` is "bytes" and `fields.length` is 1 or more. - Maintained the existing `onClick` functionality to append a new input with a default value of an empty string. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Bug Fixes** * Fixed an issue in the contract publish form where the Add Parameter button was incorrectly disabled when working with bytes parameters. Users can now add multiple bytes parameters without restriction. ✏️ Tip: You can customize this high-level summary in your review settings. --- .../decoded-bytes-input/decoded-input-set.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx b/apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx index ad69236c266..b76c069abeb 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx @@ -72,7 +72,6 @@ export const DecodedInputSet: React.FC = ({