Skip to content

Commit

Permalink
reflect EventConsumableItemCrafts hardfork to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sonohoshi committed Mar 29, 2024
1 parent d7b6f51 commit cba4854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .Lib9c.Tests/Action/EventConsumableItemCraftsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void Execute(
previousStates = previousStates
.SetAvatarState(_avatarAddress, previousAvatarState);

var previousActionPoint = previousAvatarState.actionPoint;
var previousActionPoint = previousStates.GetActionPoint(_avatarAddress);
var previousResultConsumableCount =
previousAvatarState.inventory.Equipments
.Count(e => e.Id == recipeRow.ResultConsumableItemId);
Expand Down Expand Up @@ -159,7 +159,7 @@ private void Execute(
var nextAvatarState = nextStates.GetAvatarState(_avatarAddress);
Assert.Equal(
previousActionPoint - recipeRow.RequiredActionPoint,
nextAvatarState.actionPoint);
nextStates.GetActionPoint(_avatarAddress));
Assert.Equal(
previousMailCount + 1,
nextAvatarState.mailBox.Count);
Expand Down

0 comments on commit cba4854

Please sign in to comment.