Permalink
Browse files

temp fix for having multiple action traces

  • Loading branch information...
unknown
unknown committed Jan 23, 2019
1 parent 570d9b4 commit 77ac0840b58f2581623178ba1ed5255e2b92f7a4
Showing with 23 additions and 6 deletions.
  1. +9 −6 frontend/src/pages/transaction.vue
  2. +10 −0 node_modules/.yarn-integrity
  3. +4 −0 yarn.lock
@@ -221,17 +221,20 @@ export default {
getTransaction: function(){
this.isloading=true;
this.$eos.getTransaction(this.$route.params.transactionid).then(tx =>{
// console.log(tx)
if(tx.traces[0]){
let et = tx.traces.find(trace => trace.act.account == 'eosdactokens');
console.log('transaction',tx)
if(tx.traces[0] && et){
this.isvalidtxid=true
}
else{
return false
}
console.log(tx)
}
this.rawtx = prettyHtml(tx);
this.type= tx.traces[0].act.name;
this.trxdata = tx.traces[0].act.data;
this.type= et.act.name;
this.trxdata = et.act.data;
this.memo_info = this.trxdata.memo;
delete this.trxdata.memo;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 77ac084

Please sign in to comment.