Skip to content

Commit eedab73

Browse files
committed
fix
1 parent 3c48825 commit eedab73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/polling-controller/src/PollingController.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { BaseController, BaseControllerV2 } from '@metamask/base-controller';
1+
import { BaseController, BaseControllerV1 } from '@metamask/base-controller';
22
import type {
33
NetworkClientId,
44
NetworkClient,
55
} from '@metamask/network-controller';
6+
import type { Json } from '@metamask/utils';
67
import stringify from 'fast-json-stable-stringify';
78
import { v4 as random } from 'uuid';
89

@@ -188,6 +189,7 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
188189

189190
if (blockTracker) {
190191
const updateOnNewBlock = this._executePoll.bind(
192+
this,
191193
networkClientId,
192194
options,
193195
);
@@ -252,5 +254,5 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
252254
class Empty {}
253255

254256
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);

0 commit comments

Comments
 (0)