Skip to content

Commit

Permalink
fix: remove groupId
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Oct 31, 2024
1 parent fce1b40 commit ca673e0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/components/dao/DAOMembers.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { GnoJSONRPCProvider } from "@gnolang/gno-js-client";
import { Buffer } from "buffer";
import React, { useCallback, useState } from "react";
import { StyleProp, View, ViewStyle, useWindowDimensions } from "react-native";
Expand All @@ -13,8 +12,7 @@ import { useInvalidateDAOProposals } from "../../hooks/dao/useDAOProposals";
import { useNameSearch } from "../../hooks/search/useNameSearch";
import useSelectedWallet from "../../hooks/useSelectedWallet";
import { NetworkKind, getUserId, parseUserId } from "../../networks";
import { adenaVMCall, extractGnoJSONString } from "../../utils/gno";
import { VotingGroupConfig } from "../../utils/gnodao/configs";
import { adenaVMCall } from "../../utils/gno";
import {
GnoAddMemberMessage,
GnoSingleChoiceProposal,
Expand Down Expand Up @@ -260,22 +258,12 @@ const useProposeToAddMembers = (daoId: string | undefined) => {
break;
}
case NetworkKind.Gno: {
const client = new GnoJSONRPCProvider(network.endpoint);

const moduleConfig: VotingGroupConfig = extractGnoJSONString(
await client.evaluateExpression(
daoAddress,
"daoCore.VotingModule().ConfigJSON()",
),
);
// const { groupId } = moduleConfig;

const msgs: GnoAddMemberMessage[] = [];
for (const member of membersToAdd) {
msgs.push({
type: "gno.land/r/teritori/groups.AddMember",
payload: {
groupId: 0, // TODO: FIX ME
groupId: 0,
address: member,
weight,
metadata: "",
Expand Down

0 comments on commit ca673e0

Please sign in to comment.