on master help sign in
- Changed transaction price back to gwei

- Added maxTxnPriceInEth dialogue

commit1fddeb35c53ceac83687aef8b27ebed50e1938f4 authorChris Johnson <chris@cjohnson.io> dateTue 12 Mar 2019, 12:51 (8 years ago) parent67251b3
1 file changed+9−2
src/components/StatelessTransaction.js+9−2
src/components/StatelessTransaction.js+9−2
@@ -65,12 +65,12 @@ const StatelessTransaction = props => {
6565
6666 const gasPriceRangeDialogue = (
6767 <React.Fragment>
68− <div className="mt-8">Gas Price: <span className="ml-4 text-700 text-sm">{(gasPrice / 1000000000).toFixed('9')} eth</span></div>
68+ <div className="mt-8">Gas Price: <span className="ml-4 text-700 text-sm">{gasPrice} gwei</span></div>
6969
7070 <input
7171 className="mt-4"
7272 type="range"
73− min="4"
73+ min="2"
7474 max="20"
7575 list="gweiVals"
7676 value={gasPrice}
@@ -113,6 +113,12 @@ const StatelessTransaction = props => {
113113 </InnerLabel>
114114 </Input>
115115
116+ const maxTxnPriceInEth = (
117+ <div className="mt-8">
118+ Max transaction price: <span className="text-700">{(gasPrice * gasLimit) / 1000000000} eth</span>
119+ </div>
120+ )
121+
116122 const nonceDialogue =
117123 <Input
118124 className={ 'mono mt-4' }
@@ -218,6 +224,7 @@ const StatelessTransaction = props => {
218224 <div>
219225 { gasPriceDialogue }
220226 { gasLimitDialogue }
227+ { maxTxnPriceInEth }
221228 </div>
222229 }
223230 { onlineParamsDialogue }