handle empty arguments

pull/1901/head^2
aniket-engg 3 years ago committed by Aniket
parent 7363034d7f
commit 7f5cefbd82
  1. 5
      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

Loading…
Cancel
Save