diff --git a/src/status_im/ui/screens/wallet/send/events.cljs b/src/status_im/ui/screens/wallet/send/events.cljs index 5087ea9ffb..af9705aa24 100644 --- a/src/status_im/ui/screens/wallet/send/events.cljs +++ b/src/status_im/ui/screens/wallet/send/events.cljs @@ -104,7 +104,9 @@ [(re-frame/inject-cofx :now)] (fn [{:keys [db now]} [_ {:keys [id message_id args] :as transaction}]] (if (transaction-valid? transaction) - (let [{:keys [from to value symbol data gas gasPrice]} args + ;NOTE(goranjovic): the transactions started from chat using /send command + ; are only in ether, so this parameter defaults to ETH + (let [{:keys [from to value symbol data gas gasPrice] :or {symbol :ETH}} args ;;TODO (andrey) revisit this map later (this map from old transactions, idk if we need all these fields) transaction {:id id :from from diff --git a/src/status_im/ui/screens/wallet/send/subs.cljs b/src/status_im/ui/screens/wallet/send/subs.cljs index dc7ef7d9ae..54365c25dc 100644 --- a/src/status_im/ui/screens/wallet/send/subs.cljs +++ b/src/status_im/ui/screens/wallet/send/subs.cljs @@ -14,7 +14,13 @@ (re-frame/reg-sub ::send-transaction :<- [:wallet] (fn [wallet] - (:send-transaction wallet))) + (let [transaction (:send-transaction wallet)] + ;NOTE(goranjovic): the transactions started from chat using /send command + ; are only in ether, so this parameter defaults to ETH + (if (:symbol transaction) + transaction + (assoc transaction :symbol :ETH))))) + (re-frame/reg-sub :wallet.send/symbol :<- [::send-transaction]