diff options
author | Dan <danjm.com@gmail.com> | 2017-09-28 22:48:25 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-29 06:55:18 +0800 |
commit | 66ed4dfaa31be826f0d5a4a34410e34eca34d007 (patch) | |
tree | 02435d3ab73e2b0fd77ce7763054dc5a4416082b /ui | |
parent | a195427e7208096f6f873175f2cbdbbb0a802191 (diff) | |
download | tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar.gz tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar.bz2 tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar.lz tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar.xz tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.tar.zst tangerine-wallet-browser-66ed4dfaa31be826f0d5a4a34410e34eca34d007.zip |
Ensure sent token value is recognized as hex.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/send-token/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/send-token/index.js b/ui/app/components/send-token/index.js index 8a827e951..6e4c909be 100644 --- a/ui/app/components/send-token/index.js +++ b/ui/app/components/send-token/index.js @@ -165,7 +165,7 @@ SendTokenScreen.prototype.clearErrorsFor = function (field) { SendTokenScreen.prototype.getAmountToSend = function (amount, selectedToken) { const { decimals } = selectedToken || {} const multiplier = Math.pow(10, Number(decimals || 0)) - const sendAmount = Number(amount * multiplier).toString(16) + const sendAmount = '0x' + Number(amount * multiplier).toString(16) return sendAmount } |