fixes ens name wallet address

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-11-11 12:07:04 +01:00
parent 5e7785d432
commit 3d4e9df825
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@
[{:keys [db] :as cofx}] [{:keys [db] :as cofx}]
(let [{:keys [custom-domain? username]} (let [{:keys [custom-domain? username]}
(:ens/registration db) (:ens/registration db)
{:keys [address public-key]} (:multiaccount db) {:keys [public-key]} (:multiaccount db)
address (ethereum/default-address db)
chain (ethereum/chain-keyword db) chain (ethereum/chain-keyword db)
chain-id (ethereum/chain-id db) chain-id (ethereum/chain-id db)
contract (get stateofus/registrars chain) contract (get stateofus/registrars chain)