From 9ddcbe863a7472395ac76c29473d3bdcbbb8cb63 Mon Sep 17 00:00:00 2001 From: Goran Jovic Date: Tue, 21 Aug 2018 10:58:11 +0200 Subject: [PATCH] bug #5568 - correctly passing gasPrice param Signed-off-by: Goran Jovic --- src/status_im/models/wallet.cljs | 10 +++++----- src/status_im/ui/screens/wallet/send/events.cljs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/status_im/models/wallet.cljs b/src/status_im/models/wallet.cljs index 8d612337b4..33e5e37b48 100644 --- a/src/status_im/models/wallet.cljs +++ b/src/status_im/models/wallet.cljs @@ -85,11 +85,11 @@ ;; SEND TRANSACTION -> RPC TRANSACTION (defn prepare-send-transaction [from {:keys [amount to gas gas-price data nonce]}] - (cond-> {:from (ethereum/normalized-address from) - :to (ethereum/normalized-address to) - :value (ethereum/int->hex amount) - :gas (ethereum/int->hex gas) - :gas-price (ethereum/int->hex gas-price)} + (cond-> {:from (ethereum/normalized-address from) + :to (ethereum/normalized-address to) + :value (ethereum/int->hex amount) + :gas (ethereum/int->hex gas) + :gasPrice (ethereum/int->hex gas-price)} data (assoc :data data) nonce diff --git a/src/status_im/ui/screens/wallet/send/events.cljs b/src/status_im/ui/screens/wallet/send/events.cljs index 61c36be623..5c48bff61f 100644 --- a/src/status_im/ui/screens/wallet/send/events.cljs +++ b/src/status_im/ui/screens/wallet/send/events.cljs @@ -26,9 +26,9 @@ (security/unmask masked-password) on-completed)) -(defn- send-tokens [symbol chain {:keys [from to value gas gas-price]} on-completed masked-password] +(defn- send-tokens [symbol chain {:keys [from to value gas gasPrice]} on-completed masked-password] (let [contract (:address (tokens/symbol->token (keyword chain) symbol))] - (erc20/transfer contract from to value gas gas-price masked-password on-completed))) + (erc20/transfer contract from to value gas gasPrice masked-password on-completed))) (re-frame/reg-fx ::send-transaction