From ca673e016ba67b6a5c6c41ebcafb72e40381533a Mon Sep 17 00:00:00 2001 From: MikaelVallenet Date: Thu, 31 Oct 2024 23:19:04 +0100 Subject: [PATCH] fix: remove groupId --- packages/components/dao/DAOMembers.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/packages/components/dao/DAOMembers.tsx b/packages/components/dao/DAOMembers.tsx index b0e9acd91..f575dfce2 100644 --- a/packages/components/dao/DAOMembers.tsx +++ b/packages/components/dao/DAOMembers.tsx @@ -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"; @@ -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, @@ -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: "",