more tx info
@@ -59,8 +59,11 @@ export default {
this.transactions = txs.map( (tx, index) => ({
number: index+1,
type: tx.tx_type,
- "from / to": tx.from + " / " + tx.to,
- amount: this.formatFranklin(tx.amount) + ' ETH',
+ from: tx.from ? (tx.from.slice(0, 8) + '...' + tx.from.slice(36, 42)) : "Ext",
+ to: tx.to ? (tx.to.slice(0, 8) + '...' + tx.to.slice(36, 42)) : "Ext",
+ token: tx.token,
+ amount: tx.amount ? (this.formatFranklin(tx.amount) + ' ETH') : "None",
+ fee: tx.fee ? (this.formatFranklin(tx.fee) + ' ETH') : "None",
nonce: tx.nonce,
}))
},
@@ -88,12 +91,13 @@ export default {
props() {
return [
{ name: 'Block #', value: `<b>${this.blockNumber}</b>`},
- // { name: 'Type', value: this.transactions.first().tx_type, },
{ name: 'New root hash', value: this.new_state_root, },
// { name: 'Transactions', value: client.TX_PER_BLOCK(), },
{ name: 'Status', value: this.status, },
{ name: 'Commit tx hash', value: `<a target="blanc" href="${this.blockchain_explorer_tx}/${this.commit_tx_hash}">${this.commit_tx_hash}</a>`, },
+ { name: 'Committed at', value: this.committed_at},
{ name: 'Verify tx hash', value: `<a target="blanc" href="${this.blockchain_explorer_tx}/${this.verify_tx_hash}">${this.verify_tx_hash}</a>`, },
+ { name: 'Committed at', value: this.verified_at},
]
}
},
