Skip to content

Commit

Permalink
Merge pull request #2020 from planetarium/obsolete-create-avatar-8
Browse files Browse the repository at this point in the history
Set obsolete create_avatar8
  • Loading branch information
ipdae authored Jul 17, 2023
2 parents 32a2c7d + 991be39 commit 0fe2f9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib9c/Action/CreateAvatar8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace Nekoyume.Action
/// </summary>
[Serializable]
[ActionType("create_avatar8")]
[ActionObsolete(ActionObsoleteConfig.V200040ObsoleteIndex)]
public class CreateAvatar8 : GameAction, ICreateAvatarV2
{
public const string DeriveFormat = "avatar-state-{0}";
Expand Down Expand Up @@ -68,6 +69,7 @@ protected override void LoadPlainValueInternal(IImmutableDictionary<string, IVal
public override IAccountStateDelta Execute(IActionContext context)
{
context.UseGas(1);
CheckObsolete(ActionObsoleteConfig.V200040ObsoleteIndex, context);
IActionContext ctx = context;
var signer = ctx.Signer;
var states = ctx.PreviousState;
Expand Down
2 changes: 2 additions & 0 deletions Lib9c/ActionObsoleteConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public static class ActionObsoleteConfig

public const long V200031ObsoleteIndex = 7_206_000;

public const long V200040ObsoleteIndex = 7_330_000L;

// While v200020, the action obsolete wasn't work well.
// So other previous `V*ObsoletedIndex`s lost its meaning and
// this block index will replace them.
Expand Down

0 comments on commit 0fe2f9f

Please sign in to comment.