Skip to content

Commit 0c4fe55

Browse files
committed
update eslint-suppressions
1 parent 6c3f8f4 commit 0c4fe55

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

eslint-suppressions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
},
176176
"packages/assets-controller/src/data-sources/RpcDataSource.ts": {
177177
"no-restricted-syntax": {
178-
"count": 2
178+
"count": 1
179179
}
180180
},
181181
"packages/assets-controller/src/data-sources/SnapDataSource.ts": {
@@ -800,7 +800,7 @@
800800
},
801801
"packages/config-registry-controller/src/index.ts": {
802802
"no-restricted-syntax": {
803-
"count": 2
803+
"count": 1
804804
}
805805
},
806806
"packages/controller-utils/src/create-service-policy.ts": {
@@ -2354,4 +2354,4 @@
23542354
"count": 10
23552355
}
23562356
}
2357-
}
2357+
}

packages/assets-controller/src/data-sources/RpcDataSource.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ export class RpcDataSource extends AbstractDataSource<
278278
return this.#getMulticallProvider(hexChainId);
279279
},
280280
getMulticall3AddressForChain: (hexChainId: Hex): Hex | undefined =>
281+
// The messenger is not being called from a constructor, so this is safe.
282+
// eslint-disable-next-line no-restricted-syntax
281283
this.#messenger.call(
282284
'ConfigRegistryController:getNetworkConfigByCaip2ChainId',
283285
`eip155:${hexToNumber(hexChainId)}`,
@@ -292,6 +294,8 @@ export class RpcDataSource extends AbstractDataSource<
292294
assetsBalance: Record<string, Record<string, { amount: string }>>;
293295
customAssets?: Record<string, string[]>;
294296
} => {
297+
// The messenger is not being called from a constructor, so this is safe.
298+
// eslint-disable-next-line no-restricted-syntax
295299
const state = this.#messenger.call('AssetsController:getState');
296300
return {
297301
assetsBalance: (state.assetsBalance ?? {}) as Record<

0 commit comments

Comments
 (0)