Skip to content

Commit

Permalink
docs: updated comments for method id resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
maht0rz committed Oct 4, 2023
1 parent 8731dfa commit 05dd72c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/module/src/runtime/MethodIdResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 05dd72c

Please sign in to comment.