aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-09-29 08:39:53 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-29 08:39:53 +0800
commit67ee5b21e6f64ac22e65f2712ae13dd8c09ed113 (patch)
treee422bcdec00cc0e921f37cad39223b6ef2e1828b /ui/app/send.js
parent4f106854ba6bbfd22b49598f9ef019aa620f5b4f (diff)
downloadtangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.gz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.bz2
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.lz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.xz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.zst
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.zip
Query for gas estimates
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index d92a6f2d5..2e6409f32 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -100,12 +100,17 @@ function SendTransactionScreen () {
SendTransactionScreen.prototype.componentWillMount = function () {
const { newTx } = this.state
+ const { address } = this.props
Promise.all([
this.props.dispatch(getGasPrice()),
- this.props.dispatch(estimateGas()),
+ this.props.dispatch(estimateGas({
+ from: address,
+ gas: '746a528800',
+ })),
])
.then(([blockGasPrice, estimatedGas]) => {
+ console.log({ blockGasPrice, estimatedGas})
this.setState({
newTx: {
...newTx,