Skip to content

Commit 03a694b

Browse files
committed
Fix test
1 parent d223455 commit 03a694b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/module/src/method/MethodParameterEncoder.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ export function checkArgsProvable(
9393

9494
const indizes = paramtypes
9595
.map((type, index) => {
96-
if (
97-
base
98-
? isProofBaseType(type) || isFlexibleProvablePure(type)
99-
: isFlexibleProvablePure(type)
100-
) {
96+
if (isProofBaseType(type) || isFlexibleProvablePure(type)) {
10197
return undefined;
10298
}
10399
return `${index}`;

packages/module/src/method/runtimeMethod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function runtimeMethodInternal(options: {
201201
methodName: string,
202202
descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<any>>
203203
) => {
204-
checkArgsProvable(target, methodName, false);
204+
checkArgsProvable(target, methodName);
205205
const executionContext = container.resolve<RuntimeMethodExecutionContext>(
206206
RuntimeMethodExecutionContext
207207
);

packages/module/test/method/runtimeMethod-fail.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Creating module with non-provable method argument", () => {
4444
}
4545
}
4646
}).toThrow(
47-
"Not all arguments of method 'undefined.foo' are provable types or proofs (indizes: [3, 4])"
47+
"Not all arguments of method 'undefined.foo' are provable types or proofs (indizes: [4])"
4848
);
4949
});
5050
});

0 commit comments

Comments
 (0)