Skip to content

Commit

Permalink
fix: catch evm send editor error
Browse files Browse the repository at this point in the history
  • Loading branch information
akira02 committed Jan 8, 2024
1 parent 8c778e9 commit 5fbecd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/EvmEditors/EvmSendEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fbecd5

Please sign in to comment.