Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ejMina226 committed Dec 11, 2024
1 parent 7a3c3fb commit b43621b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/module/src/method/runtimeMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
ArgumentTypes,
TypedClass,
} from "@proto-kit/common";
import { CircuitValue } from "o1js/dist/web/lib/provable/types/circuit-value";

import type { RuntimeModule } from "../runtime/RuntimeModule.js";

Expand Down Expand Up @@ -240,11 +239,11 @@ function runtimeMethodInternal(options: {
...args: ArgumentTypes
) {
args.forEach((arg) => {
const data: any = Reflect.getMetadata(
const argData: any | undefined = Reflect.getMetadata(
runtimeMethodNamesMetadataKey,
arg
);
if (isSubtypeOfName(data, "FlexibleProvablePure")) {
if (isSubtypeOfName(argData, "FlexibleProvablePure")) {
throw Error("Argument to method not of type FlexibleProvablePure.");
}
});
Expand Down

0 comments on commit b43621b

Please sign in to comment.