on master help sign in
- Changed transaction price back to gwei
1fddeb3Chris Johnson
src/components/StatelessTransaction.js+9−2
@@ -65,12 +65,12 @@ const StatelessTransaction = props => {
65
65
66 const gasPriceRangeDialogue = (
66 const gasPriceRangeDialogue = (
67 <React.Fragment>
67 <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>
69
69
70 <input
70 <input
71 className="mt-4"
71 className="mt-4"
72 type="range"
72 type="range"
73− min="4"
73+ min="2"
74 max="20"
74 max="20"
75 list="gweiVals"
75 list="gweiVals"
76 value={gasPrice}
76 value={gasPrice}
@@ -113,6 +113,12 @@ const StatelessTransaction = props => {
113 </InnerLabel>
113 </InnerLabel>
114 </Input>
114 </Input>
115
115
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+
116 const nonceDialogue =
122 const nonceDialogue =
117 <Input
123 <Input
118 className={ 'mono mt-4' }
124 className={ 'mono mt-4' }
@@ -218,6 +224,7 @@ const StatelessTransaction = props => {
218 <div>
224 <div>
219 { gasPriceDialogue }
225 { gasPriceDialogue }
220 { gasLimitDialogue }
226 { gasLimitDialogue }
227+ { maxTxnPriceInEth }
221 </div>
228 </div>
222 }
229 }
223 { onlineParamsDialogue }
230 { onlineParamsDialogue }