@ethereansos/interfaces-core 0.4.112 → 0.4.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +15 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -11
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -48867,16 +48867,20 @@ var Web3ContextInitializer = function Web3ContextInitializer(_ref) {
|
|
48867
48867
|
while (1) {
|
48868
48868
|
switch (_context.prev = _context.next) {
|
48869
48869
|
case 0:
|
48870
|
-
if (
|
48871
|
-
|
48870
|
+
if (provider) {
|
48871
|
+
_context.next = 2;
|
48872
|
+
break;
|
48872
48873
|
}
|
48873
48874
|
|
48874
|
-
_context.
|
48875
|
+
return _context.abrupt("return", setter(0));
|
48876
|
+
|
48877
|
+
case 2:
|
48878
|
+
_context.prev = 2;
|
48875
48879
|
_context.t0 = parseInt;
|
48876
|
-
_context.next =
|
48880
|
+
_context.next = 6;
|
48877
48881
|
return sendAsync(provider, 'eth_blockNumber');
|
48878
48882
|
|
48879
|
-
case
|
48883
|
+
case 6:
|
48880
48884
|
_context.t1 = _context.sent;
|
48881
48885
|
currentBlockNumber = (0, _context.t0)(_context.t1);
|
48882
48886
|
|
@@ -48884,19 +48888,19 @@ var Web3ContextInitializer = function Web3ContextInitializer(_ref) {
|
|
48884
48888
|
setter(currentBlockNumber);
|
48885
48889
|
}
|
48886
48890
|
|
48887
|
-
_context.next =
|
48891
|
+
_context.next = 13;
|
48888
48892
|
break;
|
48889
48893
|
|
48890
|
-
case
|
48891
|
-
_context.prev =
|
48892
|
-
_context.t2 = _context["catch"](
|
48894
|
+
case 11:
|
48895
|
+
_context.prev = 11;
|
48896
|
+
_context.t2 = _context["catch"](2);
|
48893
48897
|
|
48894
|
-
case
|
48898
|
+
case 13:
|
48895
48899
|
case "end":
|
48896
48900
|
return _context.stop();
|
48897
48901
|
}
|
48898
48902
|
}
|
48899
|
-
}, _callee, null, [[
|
48903
|
+
}, _callee, null, [[2, 11]]);
|
48900
48904
|
}));
|
48901
48905
|
|
48902
48906
|
return function (_x, _x2, _x3, _x4) {
|