mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
fix for optional event parameters
This commit is contained in:
parent
8170a0a211
commit
c5ee34d349
7
dist/web3-light.js
vendored
7
dist/web3-light.js
vendored
@ -2320,7 +2320,12 @@ SolidityEvent.prototype.execute = function (indexed, options, callback) {
|
||||
|
||||
if (utils.isFunction(arguments[arguments.length - 1])) {
|
||||
callback = arguments[arguments.length - 1];
|
||||
options = null;
|
||||
if(arguments.length === 2)
|
||||
options = null;
|
||||
if(arguments.length === 1) {
|
||||
options = null;
|
||||
indexed = {};
|
||||
}
|
||||
}
|
||||
|
||||
var o = this.encode(indexed, options);
|
||||
|
4
dist/web3-light.js.map
vendored
4
dist/web3-light.js.map
vendored
File diff suppressed because one or more lines are too long
9
dist/web3-light.min.js
vendored
9
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
7
dist/web3.js
vendored
7
dist/web3.js
vendored
@ -2320,7 +2320,12 @@ SolidityEvent.prototype.execute = function (indexed, options, callback) {
|
||||
|
||||
if (utils.isFunction(arguments[arguments.length - 1])) {
|
||||
callback = arguments[arguments.length - 1];
|
||||
options = null;
|
||||
if(arguments.length === 2)
|
||||
options = null;
|
||||
if(arguments.length === 1) {
|
||||
options = null;
|
||||
indexed = {};
|
||||
}
|
||||
}
|
||||
|
||||
var o = this.encode(indexed, options);
|
||||
|
4
dist/web3.js.map
vendored
4
dist/web3.js.map
vendored
File diff suppressed because one or more lines are too long
11
dist/web3.min.js
vendored
11
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -175,7 +175,12 @@ SolidityEvent.prototype.execute = function (indexed, options, callback) {
|
||||
|
||||
if (utils.isFunction(arguments[arguments.length - 1])) {
|
||||
callback = arguments[arguments.length - 1];
|
||||
options = null;
|
||||
if(arguments.length === 2)
|
||||
options = null;
|
||||
if(arguments.length === 1) {
|
||||
options = null;
|
||||
indexed = {};
|
||||
}
|
||||
}
|
||||
|
||||
var o = this.encode(indexed, options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user