@@ -4,7 +4,36 @@ import { Button } from '../components/Base'
5import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
5import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
7+import { NETWORK_NAMES } from '../lib/network'
7−const Success = (props) =>
9+const Success = (props) => {
12+ props.networkType === NETWORK_NAMES.ROPSTEN ||
13+ props.networkType === NETWORK_NAMES.MAINNET
16+ props.networkType === NETWORK_NAMES.ROPSTEN
17+ ? "ropsten.etherscan.io"
22+ ? "If you’d like to keep track of it, click the Etherscan link below."
29+ className={'mb-4 mt-1'}
32+ href={`https://${esdomain}/tx/${props.hash}`}>
33+ {'View on Etherscan ↗'}
10 <H1>{ 'Your Transaction was Sent' }</H1>
39 <H1>{ 'Your Transaction was Sent' }</H1>
@@ -12,8 +41,7 @@ const Success = (props) =>
14 `We sent your transaction to the chain. It can take some time to
43 `We sent your transaction to the chain. It can take some time to
15− execute, especially if the network is busy. If you’d like to keep
44+ execute, especially if the network is busy. ${esmessage}`
16− track of it, click the Etherscan link below.`
@@ -21,15 +49,13 @@ const Success = (props) =>
22 { props.hash }
50 { props.hash }
25− className={'mb-4 mt-1'}
53+ { esanchor }
28− href={`https://etherscan.io/tx/${props.hash}`}>
29− {'View on Etherscan ↗'}
34const Failure = (props) =>
60const Failure = (props) =>
@@ -50,7 +76,7 @@ const Failure = (props) =>
52const SentTransaction = (props) => {
78const SentTransaction = (props) => {
53− const { web3, txnCursor, popRoute } = props
79+ const { web3, txnCursor, networkType, popRoute } = props
54 const { setPointCursor, pointCursor } = props
80 const { setPointCursor, pointCursor } = props
56 const w3 = web3.matchWith({
82 const w3 = web3.matchWith({
@@ -65,7 +91,11 @@ const SentTransaction = (props) => {
66 const body = result.matchWith({
92 const body = result.matchWith({
67 Error: message => <Failure web3={ w3 } message={ message.value } />,
93 Error: message => <Failure web3={ w3 } message={ message.value } />,
68− Ok: txn => <Success hash={ txn.value.transactionHash } />
96+ hash={ txn.value.transactionHash }
97+ networkType={ networkType }
71 const ok =
101 const ok =