Skip to content

Commit 8e5fc1d

Browse files
goranjovicoskarth
authored andcommitted
bug status-im#2949 - resolved unset gas info after send from chat
1 parent 2f6742c commit 8e5fc1d

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

resources/js/bots/transactor/bot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ function handleSend(groupChat, params, context) {
407407
var gasPrice = calculateGasPrice(params["bot-db"]["sliderValue"]);
408408
var data = {
409409
from: context.from,
410-
value: val
410+
value: val,
411+
gas: web3.toBigNumber(21000)
411412
};
412413

413414
if (groupChat) {

src/status_im/ui/screens/wallet/navigation.cljs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
db
2222
(update db :wallet dissoc :request-transaction)))
2323

24-
(defn- dissoc-transaction-details [m]
25-
(apply dissoc m (apply disj (set (keys m)) (keys db/transaction-send-default))))
26-
2724
(defmethod navigation/preload-data! :wallet-send-transaction
2825
[db [event]]
2926
(if (= event :navigate-back)
3027
db
31-
(update-in db [:wallet :send-transaction] dissoc-transaction-details)))
28+
(assoc-in db [:wallet :send-transaction] db/transaction-send-default)))

src/status_im/ui/screens/wallet/send/events.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
:symbol symbol
109109
:value (money/bignumber (or value 0))
110110
:data data
111-
:gas (money/to-decimal gas)
112-
:gas-price (money/to-decimal gasPrice)
111+
:gas (money/bignumber (money/to-decimal gas))
112+
:gas-price (money/bignumber (money/to-decimal gasPrice))
113113
:timestamp now
114114
:message-id message_id}
115115
sending-from-chat? (not (get-in db [:wallet :send-transaction :waiting-signal?]))

0 commit comments

Comments
 (0)