Bytom Wallet for Chrome
Revision | bdc79471e006b4865b978341c8327179e55f192b (tree) |
---|---|
Zeit | 2020-10-15 15:38:41 |
Autor | Zhiting Lin <zlin035@uott...> |
Commiter | Zhiting Lin |
update the side chain
@@ -103,7 +103,8 @@ const cn = { | ||
103 | 103 | listAsset: { |
104 | 104 | all:'全部', |
105 | 105 | fail:'失败', |
106 | - main:'主链' | |
106 | + main:'主链', | |
107 | + side:'侧链', | |
107 | 108 | }, |
108 | 109 | crossChain:{ |
109 | 110 | title:'跨链', |
@@ -103,7 +103,8 @@ const en = { | ||
103 | 103 | listAsset: { |
104 | 104 | all:'All', |
105 | 105 | fail:'Failed', |
106 | - main:'Chain' | |
106 | + main:'Chain', | |
107 | + side:'Sidechain', | |
107 | 108 | }, |
108 | 109 | crossChain:{ |
109 | 110 | title:'Cross Chain', |
@@ -376,7 +376,12 @@ export default { | ||
376 | 376 | } |
377 | 377 | |
378 | 378 | if(transaction.types.includes('in_crosschain')){ |
379 | - transaction.address = `${this.currentAsset.asset.symbol} ${this.$t("listAsset.main")}` | |
379 | + const chain = this.netType ==='vapor'? this.$t("listAsset.main"):this.$t("listAsset.side") | |
380 | + let symbol = this.currentAsset.asset.symbol | |
381 | + if(symbol =='SUP'){ | |
382 | + symbol = 'BTM' | |
383 | + } | |
384 | + transaction.address = `${symbol} ${chain}` | |
380 | 385 | }else if(transaction.types.includes('vote')){ |
381 | 386 | const pubKey = transaction.outputs.find( i => i.type ==='vote').vote |
382 | 387 | const item = this.listVote[pubKey] |