Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzal3x committed Dec 24, 2024
1 parent da40c77 commit a8028d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions portal/common/lib/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SuiObjectResponse> {
private async fetchRoutesDynamicFieldObject(siteObjectId: string): Promise<SuiObjectResponse> {
const routesMoveType = "vector<u8>";
const dynamicFieldId = deriveDynamicFieldID(
objectId,
siteObjectId,
routesMoveType,
bcs.vector(bcs.u8()).serialize(Buffer.from("routes")).toBytes(),
);
Expand Down

0 comments on commit a8028d5

Please sign in to comment.