Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Apr 17, 2024
1 parent 22d829e commit 0111483
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Lib9c/Action/RewardGold.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,10 @@ public IWorld MinerReward(IActionContext ctx, IWorld states)

public static IWorld TransferMead(IActionContext context, IWorld states)
{
var targetAddresses = context.Txs is { } txs
? txs
.Where(tx => tx.MaxGasPrice is { } price && price.Currency.Equals(Currencies.Mead))
.Select(tx => tx.Signer)
.Distinct()
: throw new NullReferenceException();
var targetAddresses = context.Txs
.Where(tx => tx.MaxGasPrice is { } price && price.Currency.Equals(Currencies.Mead))
.Select(tx => tx.Signer)
.Distinct();
foreach (var address in targetAddresses)
{
var contractAddress = address.GetPledgeAddress();
Expand Down

0 comments on commit 0111483

Please sign in to comment.