fixed log fields

This commit is contained in:
Marek Kotewicz 2015-04-21 18:46:42 +02:00
parent d38f5a215a
commit c8e576893e
8 changed files with 31 additions and 17 deletions

10
dist/web3-light.js vendored
View File

@ -2151,9 +2151,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 || '';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
dist/web3.js vendored
View File

@ -2151,9 +2151,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 || '';

4
dist/web3.js.map vendored

File diff suppressed because one or more lines are too long

5
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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 () {

View File

@ -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 || '';