Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Dec 19, 2024
1 parent 2280e93 commit cfd8c73
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 1 addition & 4 deletions packages/taco/src/conditions/schemas/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { BlockIdentifierSchema, EthAddressSchema } from '@nucypher/shared';
import { z } from 'zod';

import {
baseConditionSchema,
UserAddressSchema,
} from './common';
import { baseConditionSchema, UserAddressSchema } from './common';
import { contextParamSchema } from './context';
import { returnValueTestSchema } from './return-value-test';

Expand Down
4 changes: 1 addition & 3 deletions packages/taco/test/conditions/base/condition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ describe('validation', () => {
expect(result.data).toBeUndefined();
expect(result.error?.format()).toMatchObject({
chain: {
_errors: [
"Expected number, received string",
],
_errors: ['Expected number, received string'],
},
});
});
Expand Down
7 changes: 6 additions & 1 deletion packages/taco/test/conditions/compound-condition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ describe('validation', () => {
const multichainCondition: CompoundConditionProps = {
conditionType: CompoundConditionType,
operator: 'and',
operands: [ChainId.ETHEREUM_MAINNET, ChainId.POLYGON, ChainId.SEPOLIA, ChainId.AMOY].map((chain) => ({
operands: [
ChainId.ETHEREUM_MAINNET,
ChainId.POLYGON,
ChainId.SEPOLIA,
ChainId.AMOY,
].map((chain) => ({
...testRpcConditionObj,
chain,
})),
Expand Down
7 changes: 6 additions & 1 deletion packages/taco/test/conditions/sequential.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ describe('validation', () => {
it('accepts on a valid multichain condition schema', () => {
const multichainCondition: SequentialConditionProps = {
conditionType: SequentialConditionType,
conditionVariables: [ChainId.AMOY, ChainId.POLYGON, ChainId.ETHEREUM_MAINNET, ChainId.SEPOLIA].map((chain) => ({
conditionVariables: [
ChainId.AMOY,
ChainId.POLYGON,
ChainId.ETHEREUM_MAINNET,
ChainId.SEPOLIA,
].map((chain) => ({
varName: `chain_${chain}`,
condition: {
...testRpcConditionObj,
Expand Down

0 comments on commit cfd8c73

Please sign in to comment.