aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Wei <chenwei@byzantine-lab.io>2019-07-04 11:27:31 +0800
committerChen Wei <chenwei@byzantine-lab.io>2019-07-04 11:27:31 +0800
commit881a012c7bdafb59e1bbbc04d13f4969dd7b370b (patch)
tree3c1192d7f0227d9f30249b47f22b71389f883d52
parent3d258d088abb3de8baa039d9def2fe8b00dd5f02 (diff)
downloadtangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar.gz
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar.bz2
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar.lz
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar.xz
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.tar.zst
tangerine-wallet-browser-881a012c7bdafb59e1bbbc04d13f4969dd7b370b.zip
update extension notification
-rw-r--r--app/scripts/platforms/extension.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index 0c2d222b8..4df7a30aa 100644
--- a/app/scripts/platforms/extension.js
+++ b/app/scripts/platforms/extension.js
@@ -1,5 +1,5 @@
const extension = require('extensionizer')
-const {createExplorerLink: explorerLink} = require('etherscan-link')
+// const {createExplorerLink: explorerLink} = require('etherscan-link')
class ExtensionPlatform {
@@ -64,11 +64,13 @@ class ExtensionPlatform {
this._subscribeToNotificationClicked()
- const url = explorerLink(txMeta.hash, parseInt(txMeta.metamaskNetworkId))
+ // const url = explorerLink(txMeta.hash, parseInt(txMeta.metamaskNetworkId))
+ const prefix = (parseInt(txMeta.metamaskNetworkId) === 373) ? '' : 'testnet.'
+ const url = `http://${prefix}tangerine.garden/transaction/${txMeta.hash}`
const nonce = parseInt(txMeta.txParams.nonce, 16)
const title = 'Confirmed transaction'
- const message = `Transaction ${nonce} confirmed! View on EtherScan`
+ const message = `Transaction ${nonce} confirmed! View on Tangerine Garden`
this._showNotification(title, message, url)
}