Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set obsolete create_avatar8 #2020

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading