Skip to content

Commit b43621b

Browse files
committed
Linting
1 parent 7a3c3fb commit b43621b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/module/src/method/runtimeMethod.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
ArgumentTypes,
1616
TypedClass,
1717
} from "@proto-kit/common";
18-
import { CircuitValue } from "o1js/dist/web/lib/provable/types/circuit-value";
1918

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

@@ -240,11 +239,11 @@ function runtimeMethodInternal(options: {
240239
...args: ArgumentTypes
241240
) {
242241
args.forEach((arg) => {
243-
const data: any = Reflect.getMetadata(
242+
const argData: any | undefined = Reflect.getMetadata(
244243
runtimeMethodNamesMetadataKey,
245244
arg
246245
);
247-
if (isSubtypeOfName(data, "FlexibleProvablePure")) {
246+
if (isSubtypeOfName(argData, "FlexibleProvablePure")) {
248247
throw Error("Argument to method not of type FlexibleProvablePure.");
249248
}
250249
});

0 commit comments

Comments
 (0)