From 5cfe6ce16735708c408339c0862fee0e320e8c8d Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 25 Apr 2024 07:54:33 +0000 Subject: [PATCH] Fix TS errors in unit test --- src/decorators/arbOwnerPublicActions.unit.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decorators/arbOwnerPublicActions.unit.test.ts b/src/decorators/arbOwnerPublicActions.unit.test.ts index 6ba09ca4..efc0f64a 100644 --- a/src/decorators/arbOwnerPublicActions.unit.test.ts +++ b/src/decorators/arbOwnerPublicActions.unit.test.ts @@ -25,6 +25,7 @@ it('Accept function name based on arbOSVersion', async () => { expect( client10.arbOwnerReadContract({ + // @ts-expect-error Not available for version 10 functionName: 'onlyOnArbOS20', }), ).rejects.toThrowError(AbiFunctionNotFoundError); @@ -36,6 +37,7 @@ it('Accept function name based on arbOSVersion', async () => { expect( client11.arbOwnerReadContract({ + // @ts-expect-error Not available for version 11 functionName: 'onlyOnArbOS20', }), ).rejects.toThrowError(AbiFunctionNotFoundError); @@ -47,6 +49,7 @@ it('Accept function name based on arbOSVersion', async () => { expect( client20.arbOwnerReadContract({ + // @ts-expect-error Not available for version 20 functionName: 'onlyOnArbOS10', }), ).rejects.toThrowError(AbiFunctionNotFoundError);