diff --git a/src/components/EvmEditors/EvmSendEditor.tsx b/src/components/EvmEditors/EvmSendEditor.tsx index 65564b6..0ec83aa 100644 --- a/src/components/EvmEditors/EvmSendEditor.tsx +++ b/src/components/EvmEditors/EvmSendEditor.tsx @@ -31,7 +31,11 @@ const EvmSendEditor = ({ sendObj.to = toString; } if (valueString) { - sendObj.value = web3.utils.toHex(valueString); + try { + sendObj.value = web3.utils.toHex(valueString); + } catch (e) { + setValue(""); + } } if (dataString) { sendObj.data = dataString;