Skip to content

Commit

Permalink
Add in circuit value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejMina226 committed Dec 10, 2024
1 parent f9bac5c commit 5522bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/module/src/method/runtimeMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
ZkProgrammable,
ArgumentTypes,
} 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 @@ -198,7 +199,7 @@ function runtimeMethodInternal(options: {
methodName: string,
descriptor: TypedPropertyDescriptor<
// TODO Limit possible parameter types
(...args: FlexibleProvablePure<any>[]) => Promise<any>
(...args: (FlexibleProvablePure<any> | CircuitValue)[]) => Promise<any>
>
) => {
const executionContext = container.resolve<RuntimeMethodExecutionContext>(
Expand Down

0 comments on commit 5522bc5

Please sign in to comment.