Skip to content

Commit

Permalink
fixed log fields
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Apr 21, 2015
1 parent d38f5a2 commit c8e5768
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 17 deletions.
10 changes: 7 additions & 3 deletions dist/web3-light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/web3-light.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/web3-light.min.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/web3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/web3.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/web3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/event_inc.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
var contract;

var update = function (err, x) {
document.getElementById('result').innerText = JSON.stringify(x);
document.getElementById('result').innerText = JSON.stringify(x, null, 2);
};

var createContract = function () {
Expand Down
10 changes: 7 additions & 3 deletions lib/web3/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,13 @@ SolidityEvent.prototype.encode = function (indexed, options) {
SolidityEvent.prototype.decode = function (data) {
var result = {
event: this.displayName(),
number: data.number,
hash: data.hash,
args: {}
args: {},
logIndex: utils.toDecimal(data.logIndex),
transactionIndex: utils.toDecimal(data.transactionIndex),
transactionHash: data.transactionHash,
address: data.address,
blockHash: data.blockHash,
blockNumber: utils.toDecimal(data.blockNumber)
};

data.data = data.data || '';
Expand Down

0 comments on commit c8e5768

Please sign in to comment.