@defisaver/automation-sdk 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,5 +30,5 @@ export function multicall(web3, chainId, calls, block = 'latest') {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
export function getEventsFromContract(contractWithMeta, event, options) {
|
|
33
|
-
return contractWithMeta.contract.getPastEvents(event, Object.assign(
|
|
33
|
+
return contractWithMeta.contract.getPastEvents(event, Object.assign({ fromBlock: contractWithMeta.createdBlock }, addToObjectIf(isDefined(options), options)));
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -48,8 +48,8 @@ export function getEventsFromContract<T extends BaseContract>(
|
|
|
48
48
|
return contractWithMeta.contract.getPastEvents(
|
|
49
49
|
event,
|
|
50
50
|
{
|
|
51
|
-
...addToObjectIf(isDefined(options), options),
|
|
52
51
|
fromBlock: contractWithMeta.createdBlock,
|
|
52
|
+
...addToObjectIf(isDefined(options), options),
|
|
53
53
|
},
|
|
54
54
|
);
|
|
55
55
|
}
|
package/umd/index.js
CHANGED
|
@@ -991,9 +991,9 @@ function _multicall() {
|
|
|
991
991
|
return _multicall.apply(this, arguments);
|
|
992
992
|
}
|
|
993
993
|
function getEventsFromContract(contractWithMeta, event, options) {
|
|
994
|
-
return contractWithMeta.contract.getPastEvents(event, _objectSpread(
|
|
994
|
+
return contractWithMeta.contract.getPastEvents(event, _objectSpread({
|
|
995
995
|
fromBlock: contractWithMeta.createdBlock
|
|
996
|
-
}));
|
|
996
|
+
}, (0,_utils__WEBPACK_IMPORTED_MODULE_1__.addToObjectIf)((0,_utils__WEBPACK_IMPORTED_MODULE_1__.isDefined)(options), options)));
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
/***/ }),
|