Skip to content

Commit

Permalink
Rename, #5008
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng committed Nov 4, 2024
1 parent 8c3dd8e commit 9d65dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-common/sima/utils/getProposalIndexer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isNil } from "lodash-es";

export function getReferendaProposalIndexer(post) {
export function getOpenGovReferendaIndexer(post) {
return {
pallet: "referenda",
object: "referendumInfoFor",
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function getProposalIndexer(post) {
const refToPost = post.refToPost;
const type = refToPost?.postType;
if (type === "referendaReferendum") {
return getReferendaProposalIndexer(refToPost);
return getOpenGovReferendaIndexer(refToPost);
} else if (type === "fellowshipReferendum") {
return getFellowshipReferendaIndexer(refToPost);
} else if (type === "treasuryProposal") {
Expand Down

0 comments on commit 9d65dc8

Please sign in to comment.