Skip to content

Commit

Permalink
Merge pull request #750 from tomochain/update-new-explorer
Browse files Browse the repository at this point in the history
update new tomoscan
  • Loading branch information
pqv199x authored Oct 29, 2021
2 parents 8bb2ad5 + 6dc4efe commit a95ce83
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/components/candidates/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
slot-scope="data">
<a
v-b-tooltip.hover.right
:href="`${config.explorerUrl}/txs/${data.item.tx}`"
:href="`${config.explorerUrl}/tx/${data.item.tx}`"
title="View on TomoScan"
target="_blank">
<i class="tm-eye" />
Expand Down
4 changes: 2 additions & 2 deletions app/components/voters/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ export default {
self.title = 'Success'
self.event = transaction.event === 'Vote' ? 'voted' : 'unvoted'
self.candidate = transaction.candidate
self.txUrl = urljoin(self.config.explorerUrl, `/txs/${self.tx}`)
self.txUrl = urljoin(self.config.explorerUrl, `/tx/${self.tx}`)
// self.description = `You have ${event}
// <span class="color-white">${amount} TOMO</span> for candidate
// <router-link to="/candidate/${transaction.candidate}">${transaction.candidate}</router-link>
// successfully.
// <br/><br/>
// Transaction Hash: <a href="${self.config.explorerUrl}/txs/${self.tx}"
// Transaction Hash: <a href="${self.config.explorerUrl}/tx/${self.tx}"
// target="_blank">${self.tx}</a>`
self.buttonText = 'View all Candidates'
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/components/voters/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
slot-scope="data">
<a
v-b-tooltip.hover.right
:href="`${config.explorerUrl}/txs/${data.item.tx}`"
:href="`${config.explorerUrl}/tx/${data.item.tx}`"
title="View on TomoScan"
target="_blank">
<i class="tm-eye" />
Expand Down
2 changes: 1 addition & 1 deletion config/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"internalWs": "",
"networkId": 88
},
"explorerUrl": "https://scan.tomochain.com",
"explorerUrl": "https://tomoscan.io",
"tomoscanUrl": "http://tomoscan_server:3333",
"baseUrl": "https://master.tomochain.com/",
"db": {
Expand Down
2 changes: 1 addition & 1 deletion helpers/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const TwitterHelper = {
const msg = owner.substr(0, 8) + ' has proposed a new candidate ' + candidate.substr(0, 8) +
'\nCapacity: ' + amount + ' $TOMO' +
'\nTomoMaster: https://master.tomochain.com/candidate/' + candidate +
'\nTransaction: https://scan.tomochain.com/txs/' + txHash
'\nTransaction: https://tomoscan.io/tx/' + txHash

twitter.post('statuses/update', { status: msg },
function (error, tweet, response) {
Expand Down

0 comments on commit a95ce83

Please sign in to comment.