@@ -103,7 +103,31 @@ export default function InlineEthereumTransaction({
103103 </Grid.Item>
104104 );
105105 } else if (completed) {
106− return undefined;
106+ return (
107+ <>
108+ <Grid.Divider />
109+ <Grid.Item full as={RestartButton} onClick={onReturn}>
110+ Return
111+ </Grid.Item>
112+ <Grid.Divider />
113+ {showReceipt && (
114+ <TransactionReceipt
115+ txHashes={txHashes}
116+ maxCost={maxCost}
117+ onClose={toggleShowReceipt}
118+ />
119+ )}
120+
121+ {!showReceipt && (
122+ <Grid.Item
123+ className="underline mv2 pointer"
124+ full
125+ onClick={toggleShowReceipt}>
126+ View Receipt
127+ </Grid.Item>
128+ )}
129+ </>
130+ );
107131 } else if (showBroadcastButton) {
108132 return (
109133 <Grid.Item
@@ -159,7 +183,8 @@ export default function InlineEthereumTransaction({
159183 .mul(toBN(gasPrice))
160184 .mul(toBN(numTxs)),
161185 'gwei'
162− )
186+ ),
187+ 'eth'
163188 ),
164189 [gasLimit, gasPrice, numTxs]
165190 );
@@ -214,7 +239,7 @@ export default function InlineEthereumTransaction({
214239 row
215240 justify="between"
216241 className="mt2">
217− <Flex.Item as={H5}>Gas Price</Flex.Item>
242+ <Flex.Item as={H5}>Transaction Fee</Flex.Item>
218243
219244 <Flex.Item as={H5}>
220245 {gasInfo}{' '}
@@ -264,38 +289,12 @@ export default function InlineEthereumTransaction({
264289 <Condition when="viewSigned" is={true}>
265290 <SignedTransactionList
266291 serializedTxsHex={serializedTxsHex}
267− gasPrice={gasPrice}
292+ maxCost={maxCost}
268293 nonce={nonce}
269294 />
270295 </Condition>
271296 </>
272297 )}
273−
274− {completed && (
275− <>
276− <Grid.Divider />
277− <Grid.Item full as={RestartButton} onClick={onReturn}>
278− Return
279− </Grid.Item>
280− <Grid.Divider />
281− {showReceipt && (
282− <TransactionReceipt
283− txHashes={txHashes}
284− maxCost={maxCost}
285− onClose={toggleShowReceipt}
286− />
287− )}
288−
289− {!showReceipt && (
290− <Grid.Item
291− className="underline mv2 pointer"
292− full
293− onClick={toggleShowReceipt}>
294− View Receipt
295− </Grid.Item>
296− )}
297− </>
298− )}
299298 </>
300299 )}
301300 </BridgeForm>
@@ -303,9 +302,9 @@ export default function InlineEthereumTransaction({
303302 );
304303}
305304
306−function SignedTransactionList({ serializedTxsHex, nonce, gasPrice }) {
305+function SignedTransactionList({ serializedTxsHex, nonce, maxCost }) {
307306 return serializedTxsHex.map((serializedTxHex, i) => (
308− <React.Fragment key="i">
307+ <React.Fragment key={i}>
309308 <Grid.Divider />
310309 <Grid.Item full as={Flex} justify="between" className="pv4 black f5">
311310 <Flex.Item>Nonce</Flex.Item>
@@ -313,8 +312,8 @@ function SignedTransactionList({ serializedTxsHex, nonce, gasPrice }) {
313312 </Grid.Item>
314313 <Grid.Divider />
315314 <Grid.Item full as={Flex} justify="between" className="pv4 black f5">
316− <Flex.Item>Gas Price</Flex.Item>
317− <Flex.Item>{gasPrice.toFixed()} Gwei</Flex.Item>
315+ <Flex.Item>Transaction Cost</Flex.Item>
316+ <Flex.Item>{maxCost} ETH</Flex.Item>
318317 </Grid.Item>
319318 <Grid.Divider />
320319 <Grid.Item full as={Flex} justify="between" className="mt3 mb2">
@@ -340,7 +339,7 @@ function TransactionReceipt({ txHashes, maxCost, onClose }) {
340339 </Flex.Item>
341340 </Grid.Item>
342341 <Grid.Item full as={Flex} justify="between" className="pv2 black f5">
343− <Flex.Item>Gas Price</Flex.Item>
342+ <Flex.Item>Transaction Cost</Flex.Item>
344343 <Flex.Item className="mono">{maxCost} ETH</Flex.Item>
345344 </Grid.Item>
346345 <Grid.Divider />