bug #5568 - correctly passing gasPrice param

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-08-21 10:58:11 +02:00
parent b0a514a427
commit 9ddcbe863a
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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