@@ -39,6 +39,7 @@ class Transfer extends React.Component {
39 userApproval: false,
39 userApproval: false,
40 nonce: '',
40 nonce: '',
41 gasPrice: '5',
41 gasPrice: '5',
42+ showGasDetails: false,
42 chainId: '',
43 chainId: '',
43 gasLimit: '600000',
44 gasLimit: '600000',
44 txn: Maybe.Nothing(),
45 txn: Maybe.Nothing(),
@@ -55,8 +56,14 @@ class Transfer extends React.Component {
55 this.handleSetChainId = this.handleSetChainId.bind(this)
56 this.handleSetChainId = this.handleSetChainId.bind(this)
56 this.handleSetGasPrice = this.handleSetGasPrice.bind(this)
57 this.handleSetGasPrice = this.handleSetGasPrice.bind(this)
57 this.handleSetGasLimit = this.handleSetGasLimit.bind(this)
58 this.handleSetGasLimit = this.handleSetGasLimit.bind(this)
59+ this.toggleGasDetails = this.toggleGasDetails.bind(this)
64+ showGasDetails: !this.state.showGasDetails
61 componentDidMount() {
68 componentDidMount() {
62 const { props } = this
69 const { props } = this
@@ -311,6 +318,8 @@ class Transfer extends React.Component {
311 gasPrice={state.gasPrice}
318 gasPrice={state.gasPrice}
312 chainId={state.chainId}
319 chainId={state.chainId}
313 gasLimit={state.gasLimit}
320 gasLimit={state.gasLimit}
321+ showGasDetails={state.showGasDetails}
322+ toggleGasDetails={state.toggleGasDetails}
314 // Checks
323 // Checks
315 userApproval={state.userApproval}
324 userApproval={state.userApproval}
316 canGenerate={ canGenerate }
325 canGenerate={ canGenerate }