[#9975] Do not throw exception on invalid ens recipient

This commit is contained in:
Roman Volosovskyi 2020-02-07 18:43:07 +02:00
parent 8a612a3807
commit 39ea685adc
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 1 additions and 1 deletions

View File

@ -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)]