Skip to content

Commit

Permalink
Obsolete old action when new sheet found
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Aug 22, 2023
1 parent 91d8e60 commit 81d1dd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib9c/Action/ItemEnhancement11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ public override IAccountStateDelta Execute(IActionContext context)
return states;
}

var costSheetV3Address = Addresses.GetSheetAddress<EnhancementCostSheetV3>();
var sheetState = states.GetState(costSheetV3Address);
if (sheetState != null)
{
throw new ActionObsoletedException(nameof(ItemEnhancement11));
}

var addressesHex = GetSignerAndOtherAddressesHex(context, avatarAddress);

var sw = new Stopwatch();
Expand Down

0 comments on commit 81d1dd1

Please sign in to comment.