From 05dd72ce4ecd6dde9564a0294caf3ac298854ca2 Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Wed, 4 Oct 2023 15:21:44 +0200 Subject: [PATCH] docs: updated comments for method id resolver --- packages/module/src/runtime/MethodIdResolver.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/module/src/runtime/MethodIdResolver.ts b/packages/module/src/runtime/MethodIdResolver.ts index 6efd6fcf..62e1697d 100644 --- a/packages/module/src/runtime/MethodIdResolver.ts +++ b/packages/module/src/runtime/MethodIdResolver.ts @@ -4,12 +4,8 @@ import { Poseidon } from "snarkyjs"; import type { Runtime, RuntimeModulesRecord } from "./Runtime"; /** - * How do we encode MethodIds - * A MethodId is defined as the following in little-endian - * [0 - * ...hash(stringToField(moduleName))[0..128], - * ...hash(stringToField(methodName))[0..128] - * ] + * Please see `getMethodId` to learn more about + * methodId encoding */ export class MethodIdResolver { private readonly dictionary: {