Commit 0b5dee8 1 parent b463ec5 commit 0b5dee8 Copy full SHA for 0b5dee8
File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,12 @@ class App extends Component {
131
131
< Row className = "justify-content-md-center" >
132
132
< Col xs = { 12 } md = { 12 } >
133
133
< Alert variant = "info" >
134
- { responseMsg } { responseTx ? < a target = "_new" href = { responseTx } > View Transaction</ a > : null }
134
+ { /* Show link to Ethereum transactions but only provide hash for DataHighway transactions */ }
135
+ { responseMsg } { responseTx ? (
136
+ responseTx . includes ( "etherscan" ) ? (
137
+ < a target = "_new" href = { responseTx } > View Transaction</ a >
138
+ ) : responseTx
139
+ ) : null }
135
140
</ Alert >
136
141
</ Col >
137
142
</ Row >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ app.get('/api/faucet/eth/ropsten',
42
42
const to = req . query . address ;
43
43
const { transactionHashUrl } = await sendTransactionEth ( to ) ;
44
44
res . send ( {
45
- message : 'Ropsten Ether sent' ,
45
+ message : 'Ropsten Ether sent with transaction ' ,
46
46
tx : transactionHashUrl
47
47
} ) ;
48
48
} catch ( error ) {
@@ -79,7 +79,7 @@ app.get('/api/faucet/mxc/ropsten',
79
79
const to = req . query . address ;
80
80
const { transactionHashUrl } = await sendTransactionMxc ( to ) ;
81
81
res . send ( {
82
- message : 'Ropsten MXC ERC-20 sent' ,
82
+ message : 'Ropsten MXC ERC-20 sent with transaction ' ,
83
83
tx : transactionHashUrl
84
84
} ) ;
85
85
} catch ( error ) {
@@ -116,7 +116,7 @@ app.get('/api/faucet/dhx/harbour',
116
116
const to = req . query . address ;
117
117
const { transactionHashUrl } = await sendTransactionDhx ( to ) ;
118
118
res . send ( {
119
- message : 'Harbour DHX sent' ,
119
+ message : 'Harbour DHX sent with transaction ' ,
120
120
tx : transactionHashUrl
121
121
} ) ;
122
122
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments