Skip to content
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
1 change: 1 addition & 0 deletions Lib9c/Action/DPoS/CancelUndelegation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;
var nativeTokens = ImmutableHashSet.Create(
Expand Down
1 change: 1 addition & 0 deletions Lib9c/Action/DPoS/Delegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;

Expand Down
1 change: 1 addition & 0 deletions Lib9c/Action/DPoS/PromoteValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
if (!ctx.Signer.Equals(Validator.Address))
{
Expand Down
3 changes: 2 additions & 1 deletion Lib9c/Action/DPoS/Redelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Redelegate(Address src, Address dst, FungibleAssetValue amount)
ShareAmount = amount;
}

internal Redelegate()
public Redelegate()
{
// Used only for deserialization. See also class Libplanet.Action.Sys.Registry.
}
Expand Down Expand Up @@ -73,6 +73,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;
var nativeTokens = ImmutableHashSet.Create(
Expand Down
3 changes: 2 additions & 1 deletion Lib9c/Action/DPoS/Undelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Undelegate(Address validator, FungibleAssetValue amount)
ShareAmount = amount;
}

internal Undelegate()
public Undelegate()
{
// Used only for deserialization. See also class Libplanet.Action.Sys.Registry.
}
Expand Down Expand Up @@ -63,6 +63,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;
var nativeTokens = ImmutableHashSet.Create(
Expand Down
1 change: 1 addition & 0 deletions Lib9c/Action/DPoS/WithdrawDelegator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;
var nativeTokens = ImmutableHashSet.Create(
Expand Down
1 change: 1 addition & 0 deletions Lib9c/Action/DPoS/WithdrawValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public override void LoadPlainValue(IValue plainValue)
/// <inheritdoc cref="IAction.Execute(IActionContext)"/>
public override IWorld Execute(IActionContext context)
{
context.UseGas(1);
IActionContext ctx = context;
var states = ctx.PreviousState;
var nativeTokens = ImmutableHashSet.Create(
Expand Down