File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/module/src/method Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ export function isFlexibleProvablePure(
75
75
76
76
export function checkArgsProvable (
77
77
target : RuntimeModule < unknown > ,
78
- methodName : string
78
+ methodName : string ,
79
+ base = true
79
80
) {
80
81
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
81
82
const paramtypes : ArgTypeArray = Reflect . getMetadata (
@@ -92,7 +93,11 @@ export function checkArgsProvable(
92
93
93
94
const indizes = paramtypes
94
95
. map ( ( type , index ) => {
95
- if ( isProofBaseType ( type ) || isFlexibleProvablePure ( type ) ) {
96
+ if (
97
+ base
98
+ ? isProofBaseType ( type ) || isFlexibleProvablePure ( type )
99
+ : isFlexibleProvablePure ( type )
100
+ ) {
96
101
return undefined ;
97
102
}
98
103
return `${ index } ` ;
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ function runtimeMethodInternal(options: {
201
201
methodName : string ,
202
202
descriptor : TypedPropertyDescriptor < ( ...args : any [ ] ) => Promise < any > >
203
203
) => {
204
- checkArgsProvable ( target , methodName ) ;
204
+ checkArgsProvable ( target , methodName , false ) ;
205
205
const executionContext = container . resolve < RuntimeMethodExecutionContext > (
206
206
RuntimeMethodExecutionContext
207
207
) ;
You can’t perform that action at this time.
0 commit comments