From a8028d5b256ae9d78951a62ced31c71413b0b06e Mon Sep 17 00:00:00 2001 From: Alexandros Tzimas Date: Tue, 24 Dec 2024 12:24:00 +0200 Subject: [PATCH] Minor refactoring --- portal/common/lib/routing.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/portal/common/lib/routing.ts b/portal/common/lib/routing.ts index 437a446b..568ab8d6 100644 --- a/portal/common/lib/routing.ts +++ b/portal/common/lib/routing.ts @@ -50,14 +50,13 @@ export class WalrusSitesRouter { /** * Derives and fetches the Routes dynamic field object. * - * @param client - The SuiClient instance. - * @param objectId - The site object ID. + * @param siteObjectId - The site object ID. * @returns The routes object. */ - private async fetchRoutesDynamicFieldObject(objectId: string): Promise { + private async fetchRoutesDynamicFieldObject(siteObjectId: string): Promise { const routesMoveType = "vector"; const dynamicFieldId = deriveDynamicFieldID( - objectId, + siteObjectId, routesMoveType, bcs.vector(bcs.u8()).serialize(Buffer.from("routes")).toBytes(), );