Skip to content

Commit

Permalink
fix: Fix bug on LeaveGuild
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Jan 15, 2025
1 parent 9765867 commit de40b14
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib9c/Module/Guild/GuildParticipantModule.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#nullable enable
using System;
using System.Diagnostics.CodeAnalysis;
using System.Numerics;
using Bencodex.Types;
using Lib9c;
using Libplanet.Types.Assets;
using Nekoyume.Action.Guild.Migration.LegacyModels;
using Nekoyume.Model.Guild;
using Nekoyume.Module.ValidatorDelegation;
using Nekoyume.TypedAddress;
Expand Down Expand Up @@ -116,7 +113,7 @@ public static GuildRepository LeaveGuild(

var height = repository.ActionContext.BlockIndex;
var guildParticipant = repository.GetGuildParticipant(agentAddress);
var delegatee = repository.GetDelegatee(guildAddress);
var delegatee = repository.GetDelegatee(guild.ValidatorAddress);
var bond = repository.GetBond(delegatee, agentAddress);
var share = bond.Share;

Expand Down

0 comments on commit de40b14

Please sign in to comment.