Skip to content

Commit

Permalink
test: Fix remove guild test
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Oct 18, 2024
1 parent b7cbc03 commit 37e076f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .Lib9c.Tests/Action/Guild/RemoveGuildTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace Lib9c.Tests.Action.Guild
using Nekoyume.Action;
using Nekoyume.Action.Guild;
using Nekoyume.Model.Guild;
using Nekoyume.Model.Stake;
using Nekoyume.Model.State;
using Nekoyume.Module;
using Nekoyume.Module.Guild;
Expand Down Expand Up @@ -81,13 +82,15 @@ public void Execute_WhenDelegationExists_Throw()
{
var validatorKey = new PrivateKey();
var guildMasterAddress = AddressUtil.CreateAgentAddress();
var guildParticipantAddress = AddressUtil.CreateAgentAddress();
var guildAddress = AddressUtil.CreateGuildAddress();

IWorld world = World;
world = EnsureToMintAsset(world, validatorKey.Address, GG * 100);
world = EnsureToCreateValidator(world, validatorKey.PublicKey);
world = EnsureToMintAsset(world, guildMasterAddress, GG * 100);
world = EnsureToMintAsset(world, StakeState.DeriveAddress(guildMasterAddress), GG * 100);
world = EnsureToMakeGuild(world, guildAddress, guildMasterAddress, validatorKey.Address);
world = EnsureToJoinGuild(world, guildAddress, guildParticipantAddress);

var actionContext = new ActionContext
{
Expand Down

0 comments on commit 37e076f

Please sign in to comment.