mirror of https://github.com/status-im/web3.js.git
eth_filter complex topics, #175
This commit is contained in:
parent
836529a391
commit
e9107367fd
|
@ -2127,6 +2127,11 @@ SolidityEvent.prototype.encode = function (indexed, options) {
|
|||
}).map(function (i) {
|
||||
var value = indexed[i.name];
|
||||
if (value !== undefined) {
|
||||
if (utils.isArray(value)) {
|
||||
return value.map(function (v) {
|
||||
return '0x' + coder.encodeParam(i.type, v);
|
||||
});
|
||||
}
|
||||
return '0x' + coder.encodeParam(i.type, value);
|
||||
}
|
||||
return null;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2127,6 +2127,11 @@ SolidityEvent.prototype.encode = function (indexed, options) {
|
|||
}).map(function (i) {
|
||||
var value = indexed[i.name];
|
||||
if (value !== undefined) {
|
||||
if (utils.isArray(value)) {
|
||||
return value.map(function (v) {
|
||||
return '0x' + coder.encodeParam(i.type, v);
|
||||
});
|
||||
}
|
||||
return '0x' + coder.encodeParam(i.type, value);
|
||||
}
|
||||
return null;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -99,6 +99,11 @@ SolidityEvent.prototype.encode = function (indexed, options) {
|
|||
}).map(function (i) {
|
||||
var value = indexed[i.name];
|
||||
if (value !== undefined) {
|
||||
if (utils.isArray(value)) {
|
||||
return value.map(function (v) {
|
||||
return '0x' + coder.encodeParam(i.type, v);
|
||||
});
|
||||
}
|
||||
return '0x' + coder.encodeParam(i.type, value);
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue