Skip to content

Commit

Permalink
Fix join GSC button
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Jun 25, 2024
1 parent 3ed7bb4 commit 4ab02bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/council-ui/src/ui/vaults/gscVault/hooks/useJoinGsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function useJoinGsc(): {
const { write, status, transactionHash } = useWrite({
pendingMessage: "Joining GSC...",
successMessage: "GSC joined!",
errorMessage: "Failed to join GSC.",
writeFn: async () => {
if (!enabled) {
throw new Error("GSC Vault not found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ export class ReadWriteGscVault extends ReadGscVault {
const vaultAddresses = vaults.map((vault) =>
typeof vault === "string" ? vault : vault.address,
);
const extraData = vaultAddresses.map((_, i) => extraVaultData[i] || "0x");
const hash = await this.gscVaultContract.write(
"proveMembership",
{
extraData: extraVaultData,
extraData,
votingVaults: vaultAddresses,
},
options,
Expand Down

0 comments on commit 4ab02bf

Please sign in to comment.