Skip to content

Commit

Permalink
explorer link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbca26 committed Feb 2, 2021
1 parent 931b9ee commit 8c4325c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,4 +651,5 @@ module.exports = {
cancelTokenOrder,
readConfig,
forceImportKey,
chainName: default_config.chain_name,
}
6 changes: 3 additions & 3 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ $('#form-create-token-submit').submit(event => {
(description !== '' ? ('(' + description + ')') : '')
+ ' with ' + supply + ' ' + daemon.getCoinName() + '\nTransaction ID: <a href="#" id="txid-link">' + createTokenTxid + '</a>')
$('#txid-link').on('click', function(e) {
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/contract/RICK/' + createTokenTxid);
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/contract/' + daemon.chainName + '/' + createTokenTxid);
})
addToHistory('Created token ' + name +
(description !== '' ? ('(' + description + ')') : '')
Expand Down Expand Up @@ -631,7 +631,7 @@ actions.forEach(action => {
addToHistory('Created token order, ' + action + 'ing ' + supply + ' ' + name +
' for ' + stripZeros(price) + ' ' + daemon.getCoinName() + ' each. \nTransaction ID: ' + sellTokenOrderTxid)
$('#txid-link').on('click', function(e) {
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/transaction/RICK/' + tokenid + '/' + sellTokenOrderTxid);
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/transaction/' + daemon.chainName + '/' + tokenid + '/' + sellTokenOrderTxid);
})
}).catch(e => {
statusAlert(false, 'Could not create token trade order: ' + e)
Expand Down Expand Up @@ -875,7 +875,7 @@ $('#form-token-fill-order-submit').submit(event => {
'\nOrder ID: ' + txid +
'\nFill Order ID: ' + fill_order_id)
$('#txid-link').on('click', function(e) {
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/transactions/RICK/' + tokenid);
openExtLink('http://www.atomicexplorer.com:10026/#/tokens/transactions/' + daemon.chainName + '/' + tokenid);
})
}).catch(e => {
statusAlert(false, e)
Expand Down

0 comments on commit 8c4325c

Please sign in to comment.