Skip to content

Commit

Permalink
Updated type ContractConditionProps
Browse files Browse the repository at this point in the history
  • Loading branch information
andresceballosm committed Aug 1, 2024
1 parent b29b131 commit 596fc99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/taco/src/conditions/base/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ export const contractConditionSchema = rpcConditionSchema
},
);

export type ContractConditionProps = z.infer<typeof contractConditionSchema>;
export type ContractConditionProps = Omit<
z.infer<typeof contractConditionSchema>,
'functionAbi'
> & {
functionAbi?: string | z.infer<typeof functionAbiSchema> | undefined;
};
export class ContractCondition extends Condition {
constructor(value: OmitConditionType<ContractConditionProps>) {
if (typeof value.functionAbi === 'string') {
Expand Down

0 comments on commit 596fc99

Please sign in to comment.