diff --git a/src/status_im/contexts/wallet/events.cljs b/src/status_im/contexts/wallet/events.cljs index 90db71bdace8..cf48b9f4ced8 100644 --- a/src/status_im/contexts/wallet/events.cljs +++ b/src/status_im/contexts/wallet/events.cljs @@ -1,20 +1,20 @@ (ns status-im.contexts.wallet.events (:require - [camel-snake-kebab.core :as csk] - [camel-snake-kebab.extras :as cske] - [clojure.string :as string] - [react-native.background-timer :as background-timer] - [status-im.contexts.wallet.data-store :as data-store] - [status-im.contexts.wallet.events.collectibles] - [status-im.contexts.wallet.item-types :as item-types] - [status-im.contexts.wallet.temp :as temp] - [taoensso.timbre :as log] - [utils.ethereum.chain :as chain] - [utils.ethereum.eip.eip55 :as eip55] - [utils.i18n :as i18n] - [utils.money :as money] - [utils.number] - [utils.re-frame :as rf])) + [camel-snake-kebab.core :as csk] + [camel-snake-kebab.extras :as cske] + [clojure.string :as string] + [react-native.background-timer :as background-timer] + [status-im.contexts.wallet.data-store :as data-store] + [status-im.contexts.wallet.events.collectibles] + [status-im.contexts.wallet.item-types :as item-types] + [status-im.contexts.wallet.temp :as temp] + [taoensso.timbre :as log] + [utils.ethereum.chain :as chain] + [utils.ethereum.eip.eip55 :as eip55] + [utils.i18n :as i18n] + [utils.money :as money] + [utils.number] + [utils.re-frame :as rf])) (rf/reg-event-fx :wallet/show-account-created-toast (fn [{:keys [db]} [address]] diff --git a/src/status_im/contexts/wallet/send/utils_test.cljs b/src/status_im/contexts/wallet/send/utils_test.cljs new file mode 100644 index 000000000000..f11502b9779a --- /dev/null +++ b/src/status_im/contexts/wallet/send/utils_test.cljs @@ -0,0 +1,10 @@ +(ns status-im.contexts.wallet.send.utils-test + (:require [cljs.test :refer [deftest is testing]] + [status-im.contexts.wallet.send.utils :as utils])) + +(deftest test-amount-in-hex + (testing "Test amount-in-hex function" + (let [amount 1 + decimal 18] + (is (= (utils/amount-in-hex amount decimal) + "0xde0b6b3a7640000")))))