From ff4c3b714bb6aa6006671184e540b86313e7fbb0 Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Thu, 14 Nov 2024 15:28:38 +0200 Subject: [PATCH 1/2] bump version --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index b6c1659182..789ab4899c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "lerna": "^8.1.9", "semver": "^7.6.3", "ts-jest": "^29.2.5", - "typescript": "^5.3.3", + "typescript": "^5.6.3", "typescript-eslint": "^8.13.0", "yarn": "^1.22.22", "zx": "^8.2.1" @@ -26907,9 +26907,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index e7bd87f7f6..95abae7144 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "lerna": "^8.1.9", "semver": "^7.6.3", "ts-jest": "^29.2.5", - "typescript": "^5.3.3", + "typescript": "^5.6.3", "typescript-eslint": "^8.13.0", "yarn": "^1.22.22", "zx": "^8.2.1" From bc9266cf264c20ed875eff88f5e699d68b32d13a Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Thu, 14 Nov 2024 15:29:49 +0200 Subject: [PATCH 2/2] fix eslint errors --- packages/dht/src/connection/ConnectionManager.ts | 2 +- packages/sdk/src/contracts/contract.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dht/src/connection/ConnectionManager.ts b/packages/dht/src/connection/ConnectionManager.ts index 5d5219caf1..c7a0f687e6 100644 --- a/packages/dht/src/connection/ConnectionManager.ts +++ b/packages/dht/src/connection/ConnectionManager.ts @@ -652,7 +652,7 @@ export class ConnectionManager extends EventEmitter implements public getDiagnosticInfo(): Record { const managedConnections: ManagedConnection[] = Array.from(this.endpoints.values()) .filter((endpoint) => endpoint.connected) - .map((endpoint) => endpoint.connection as ManagedConnection) + .map((endpoint) => endpoint.connection) return { connections: managedConnections.map((connection) => connection.getDiagnosticInfo()), connectionCount: this.endpoints.size diff --git a/packages/sdk/src/contracts/contract.ts b/packages/sdk/src/contracts/contract.ts index acbe52cf98..0d250db8f5 100644 --- a/packages/sdk/src/contracts/contract.ts +++ b/packages/sdk/src/contracts/contract.ts @@ -148,7 +148,7 @@ export const createDecoratedContract = ( * single-value results: the return type of contract.functions[methodName] is always * Promise (see https://docs.ethers.org/v6/api/contract/#BaseContract) */ - const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => (f as FunctionFragment).name) + const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => f.name) methodNames.forEach((methodName) => { decoratedContract[methodName] = createWrappedContractMethod( contract,