Signed-off-by: Michele Balistreri <michele@bitgamma.com>
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
Michele Balistreri 2020-11-05 13:00:13 +01:00 committed by andrey
parent 7cef533a8a
commit 206ce8849f
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@
(let [{:keys [result error]} (types/json->clj result) (let [{:keys [result error]} (types/json->clj result)
message (get-in db [:signing/sign :formatted-data :message]) message (get-in db [:signing/sign :formatted-data :message])
currency-contract (:currency message)] currency-contract (:currency message)]
(when-not (or (:receiver message) (:code message)) (when currency-contract
(json-rpc/eth-call {:contract currency-contract (json-rpc/eth-call {:contract currency-contract
:method "decimals()" :method "decimals()"
:outputs ["uint8"] :outputs ["uint8"]