Skip to content

Commit

Permalink
Fix TS errors in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Apr 25, 2024
1 parent d824c71 commit 5cfe6ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/decorators/arbOwnerPublicActions.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 5cfe6ce

Please sign in to comment.