diff --git a/src/components/EvmEditors/EvmTxForm.tsx b/src/components/EvmEditors/EvmTxForm.tsx index 9260169..5ae0cf3 100644 --- a/src/components/EvmEditors/EvmTxForm.tsx +++ b/src/components/EvmEditors/EvmTxForm.tsx @@ -34,7 +34,11 @@ const EvmTxForm = ({ 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;