File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/module/src/method Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {
15
15
ArgumentTypes ,
16
16
TypedClass ,
17
17
} from "@proto-kit/common" ;
18
- import { CircuitValue } from "o1js/dist/web/lib/provable/types/circuit-value" ;
19
18
20
19
import type { RuntimeModule } from "../runtime/RuntimeModule.js" ;
21
20
@@ -240,11 +239,11 @@ function runtimeMethodInternal(options: {
240
239
...args : ArgumentTypes
241
240
) {
242
241
args . forEach ( ( arg ) => {
243
- const data : any = Reflect . getMetadata (
242
+ const argData : any | undefined = Reflect . getMetadata (
244
243
runtimeMethodNamesMetadataKey ,
245
244
arg
246
245
) ;
247
- if ( isSubtypeOfName ( data , "FlexibleProvablePure" ) ) {
246
+ if ( isSubtypeOfName ( argData , "FlexibleProvablePure" ) ) {
248
247
throw Error ( "Argument to method not of type FlexibleProvablePure." ) ;
249
248
}
250
249
} ) ;
You can’t perform that action at this time.
0 commit comments