fixed log fields
This commit is contained in:
parent
d38f5a215a
commit
c8e576893e
|
@ -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
|
@ -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
|
@ -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 () {
|
||||
|
|
|
@ -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 || '';
|
||||
|
|
Loading…
Reference in New Issue