diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index 0175f272f9..c8dc13be19 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -58,6 +58,11 @@ export function ContractGUI (props: ContractGUIProps) { const onCTCMouseDown = () => { const multiString = getMultiValsString() + // copy-to-clipboard icon is only visible for method requiring input params + if (!multiString) { + setClipboardContent('cannot encode empty arguments') + return + } const multiJSON = JSON.parse('[' + multiString + ']') let encodeObj