From 345c0d873cd0bd260af9bbac6546cbce51189478 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Mon, 20 Apr 2026 13:27:07 +0300 Subject: [PATCH] remove chainId --- src/@types/commands.ts | 3 --- src/components/core/handler/persistentStorage.ts | 5 ----- src/components/httpRoutes/persistentStorage.ts | 2 -- 3 files changed, 10 deletions(-) diff --git a/src/@types/commands.ts b/src/@types/commands.ts index 999ddb1b1..6ed0f76f4 100644 --- a/src/@types/commands.ts +++ b/src/@types/commands.ts @@ -328,8 +328,6 @@ export interface PersistentStorageGetBucketsCommand extends Command { consumerAddress: string signature: string nonce: string - chainId: number - /** Ethereum address; only buckets with this stored owner are returned (then filtered by ACL). */ owner: string } @@ -360,7 +358,6 @@ export interface PersistentStorageDeleteFileCommand extends Command { consumerAddress: string signature: string nonce: string - chainId: number bucketId: string fileName: string } diff --git a/src/components/core/handler/persistentStorage.ts b/src/components/core/handler/persistentStorage.ts index 859bd5527..5674c00e0 100644 --- a/src/components/core/handler/persistentStorage.ts +++ b/src/components/core/handler/persistentStorage.ts @@ -119,13 +119,9 @@ export class PersistentStorageGetBucketsHandler extends CommandHandler { 'consumerAddress', 'signature', 'nonce', - 'chainId', 'owner' ]) if (!base.valid) return base - if (typeof command.chainId !== 'number') { - return buildInvalidRequestMessage('Invalid parameter: "chainId" must be a number') - } if (!command.owner || typeof command.owner !== 'string') { return buildInvalidRequestMessage( 'Invalid parameter: "owner" must be a non-empty string' @@ -346,7 +342,6 @@ export class PersistentStorageDeleteFileHandler extends CommandHandler { 'consumerAddress', 'signature', 'nonce', - 'chainId', 'bucketId', 'fileName' ]) diff --git a/src/components/httpRoutes/persistentStorage.ts b/src/components/httpRoutes/persistentStorage.ts index ae50616a0..c99ad3d76 100644 --- a/src/components/httpRoutes/persistentStorage.ts +++ b/src/components/httpRoutes/persistentStorage.ts @@ -54,7 +54,6 @@ persistentStorageRoutes.get( consumerAddress: req.query.consumerAddress as string, signature: req.query.signature as string, nonce: req.query.nonce as string, - chainId: parseInt(req.query.chainId as string) || null, owner: req.query.owner as string, authorization: req.headers?.authorization, caller: req.caller @@ -173,7 +172,6 @@ persistentStorageRoutes.delete( consumerAddress: req.query.consumerAddress as string, signature: req.query.signature as string, nonce: req.query.nonce as string, - chainId: parseInt(req.query.chainId as string) || null, bucketId: req.params.bucketId, fileName: req.params.fileName, authorization: req.headers?.authorization,