GasPrice selection for contract execution

This commit is contained in:
Jaco Greeff
2016-12-09 15:43:24 +01:00
parent 1213ada59c
commit d2494d1425
7 changed files with 184 additions and 68 deletions

View File

@@ -30,21 +30,14 @@ export default class Extras extends Component {
}
render () {
const { gasStore, onChange, total, totalError } = this.props;
const { gasStore, onChange } = this.props;
return (
<Form>
{ this.renderData() }
<GasPriceEditor
store={ gasStore }
onChange={ onChange }>
<Input
disabled
label='total transaction amount'
hint='the total amount of the transaction'
error={ totalError }
value={ `${total} ETH` } />
</GasPriceEditor>
onChange={ onChange } />
</Form>
);
}

View File

@@ -408,6 +408,8 @@ export default class TransferStore {
this.totalError = totalError;
this.value = value;
this.valueError = valueError;
this.gasStore.setErrorTotal(totalError);
this.gasStore.setEthValue(totalEth);
});
}