Skip to content

Commit

Permalink
Merge pull request #85 from xyzshen/dev-1.0.2
Browse files Browse the repository at this point in the history
repair logs decode bug
  • Loading branch information
mingzhenliu authored Jul 26, 2019
2 parents 0a15459 + e4e10e3 commit e480da2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.11347db7393a07f4d6f0.js></script><script type=text/javascript src=./static/js/3.dacdd196d03d0b609601.js></script><script type=text/javascript src=./static/js/runtime.037c2dc15c669aa44ecf.js></script><script type=text/javascript src=./static/js/5.26974de030355e20c144.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.766498cf5ffeb60a8e30.js></script><script type=text/javascript src=./static/js/3.dacdd196d03d0b609601.js></script><script type=text/javascript src=./static/js/runtime.037c2dc15c669aa44ecf.js></script><script type=text/javascript src=./static/js/5.26974de030355e20c144.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/transactionDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ export default {
}
}
list.eventName = list.eventName + ")";
let eventResult = web3.eth.abi.decodeLog(eventData.abiInfo.inputs, list.data, list.topics);
let eventResult = web3.eth.abi.decodeLog(eventData.abiInfo.inputs, list.data, list.topics.slice(1));
list.outData = {};
list.eventLgData = [];
for (const key in eventResult) {
Expand Down
6 changes: 3 additions & 3 deletions src/views/chaincode/components/contractCatalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<template>
<div class="contract-menu" style="position: relative;height: 100% ;">
<div class="contract-menu-header" >
<el-tooltip class="item" effect="dark" v-if="!disabled" content="新建文件夹" placement="top-start">
<i class="wbs-icon-Addfolder icon contract-icon" @click='addFolder'></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="新建文件" v-if="!disabled" placement="top-start">
<i class="wbs-icon-Addfile icon contract-icon" @click='addFile'></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" v-if="!disabled" content="新建文件夹" placement="top-start">
<i class="wbs-icon-Addfolder icon contract-icon" @click='addFolder'></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="上传文件" v-if="!disabled" placement="top-start">
<i class="wbs-icon-shangchuan contract-icon" style="position:relative;">
<input type="file" id="file" ref='file' name="chaincodes" class="uploads" @change="upload($event)"/>
Expand Down
5 changes: 3 additions & 2 deletions src/views/chaincode/dialog/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default {
}
},
mounted: function () {
this.editorHeight = document.body.offsetHeight * 0.75
if (this.transationData.output == "0x") {
this.inputButtonShow = false
} else {
Expand All @@ -205,7 +206,7 @@ export default {
if (this.typesArray && this.transationData.output != "0x") {
this.decodefun()
}
this.editorHeight = document.body.offsetHeight * 0.75
},
methods: {
decodeOutput: function () {
Expand Down Expand Up @@ -303,7 +304,7 @@ export default {
}
}
list.eventName = list.eventName + ")";
let eventResult = web3.eth.abi.decodeLog(eventData.abiInfo.inputs, list.data, list.topics);
let eventResult = web3.eth.abi.decodeLog(eventData.abiInfo.inputs, list.data, list.topics.slice(1));
list.outData = {};
list.eventLgData = [];
for (const key in eventResult) {
Expand Down
1 change: 0 additions & 1 deletion src/views/front/front.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export default {
this.total = res.data.totalCount;
this.frontData = res.data.data || [];
this.loading = false;
this.getNodeTable()
} else {
this.loading = false;
this.$message({
Expand Down
2 changes: 1 addition & 1 deletion src/views/transactionInfo/components/transactionDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default {
let eventData = web3.eth.abi.decodeLog(
value.inputs,
val.data,
val.topics
val.topics.slice(1)
);
}
});
Expand Down

0 comments on commit e480da2

Please sign in to comment.