Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 20, 2024
1 parent eeae6d3 commit 369e7c0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/helpers/collectModuleParams.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { COLLECT_FEES_ADDRESS } from "@hey/data/constants";
import { PostActionType } from "@hey/indexer";
import {
type CollectActionInput,
PostActionType,
type SimpleCollectActionInput
} from "@hey/indexer";
import type { CollectModuleType } from "@hey/types/hey";

const collectModuleParams = (
collectModule: CollectModuleType
): CollectActionModuleInput | null => {
): CollectActionInput | null => {
const {
amount,
collectLimit,
Expand All @@ -14,7 +18,7 @@ const collectModuleParams = (
referralFee
} = collectModule;

const baseCollectModuleParams = {
const baseCollectModuleParams: SimpleCollectActionInput = {
collectLimit: collectLimit || undefined,
endsAt: endsAt || undefined,
followerOnly: followerOnly || false
Expand Down Expand Up @@ -59,7 +63,7 @@ const collectModuleParams = (

switch (collectModule.type) {
case PostActionType.SimpleCollectAction:
return { simpleCollectOpenAction: baseCollectModuleParams };
return { simpleCollectAction: baseCollectModuleParams };
case PostActionType.MultirecipientFeeCollectAction:
return {
multirecipientCollectOpenAction: {
Expand Down

0 comments on commit 369e7c0

Please sign in to comment.