We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac05de commit d73e4b4Copy full SHA for d73e4b4
packages/polling-controller/src/PollingController.ts
@@ -68,6 +68,9 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
68
*/
69
setIntervalLength(length: number) {
70
this.#intervalLength = length;
71
+
72
+ // setting and using an interval is mutually exclusive with polling on new blocks
73
+ this.#getNetworkClientById = undefined;
74
}
75
76
setPollOnNewBlocks(
@@ -77,8 +80,10 @@ function PollingControllerMixin<TBase extends Constructor>(Base: TBase) {
77
80
throw new Error('getNetworkClientById callback required');
78
81
79
82
- this.#intervalLength = 0;
83
this.#getNetworkClientById = getNetworkClientById;
84
85
+ // using block times is mutually exclusive with polling on a static interval
86
+ this.#intervalLength = 0;
87
88
89
/**
0 commit comments