[#9975] Trim recipient address before validation
This commit is contained in:
parent
3d4ee8fe6a
commit
8a612a3807
|
@ -94,8 +94,9 @@
|
|||
|
||||
(fx/defn set-recipient
|
||||
{:events [:wallet.send/set-recipient ::recipient-address-resolved]}
|
||||
[{:keys [db]} recipient]
|
||||
(let [chain (ethereum/chain-keyword db)]
|
||||
[{:keys [db]} raw-recipient]
|
||||
(let [chain (ethereum/chain-keyword db)
|
||||
recipient (string/trim raw-recipient)]
|
||||
(cond
|
||||
(ethereum/address? recipient)
|
||||
(let [checksum (eip55/address->checksum recipient)]
|
||||
|
|
Loading…
Reference in New Issue