File tree 1 file changed +5
-3
lines changed
packages/polling-controller/src
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import { BaseController , BaseControllerV2 } from '@metamask/base-controller' ;
1
+ import { BaseController , BaseControllerV1 } from '@metamask/base-controller' ;
2
2
import type {
3
3
NetworkClientId ,
4
4
NetworkClient ,
5
5
} from '@metamask/network-controller' ;
6
+ import type { Json } from '@metamask/utils' ;
6
7
import stringify from 'fast-json-stable-stringify' ;
7
8
import { v4 as random } from 'uuid' ;
8
9
@@ -188,6 +189,7 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
188
189
189
190
if ( blockTracker ) {
190
191
const updateOnNewBlock = this . _executePoll . bind (
192
+ this ,
191
193
networkClientId ,
192
194
options ,
193
195
) ;
@@ -252,5 +254,5 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
252
254
class Empty { }
253
255
254
256
export const PollingControllerOnly = PollingControllerMixin ( Empty ) ;
255
- export const PollingController = PollingControllerMixin ( BaseControllerV2 ) ;
256
- export const PollingControllerV1 = PollingControllerMixin ( BaseController ) ;
257
+ export const PollingController = PollingControllerMixin ( BaseController ) ;
258
+ export const PollingControllerV1 = PollingControllerMixin ( BaseControllerV1 ) ;
You can’t perform that action at this time.
0 commit comments