[#9975] Do not throw exception on invalid ens recipient
This commit is contained in:
parent
8a612a3807
commit
39ea685adc
|
@ -96,7 +96,7 @@
|
|||
{:events [:wallet.send/set-recipient ::recipient-address-resolved]}
|
||||
[{:keys [db]} raw-recipient]
|
||||
(let [chain (ethereum/chain-keyword db)
|
||||
recipient (string/trim raw-recipient)]
|
||||
recipient (when raw-recipient (string/trim raw-recipient))]
|
||||
(cond
|
||||
(ethereum/address? recipient)
|
||||
(let [checksum (eip55/address->checksum recipient)]
|
||||
|
|
Loading…
Reference in New Issue