diff --git a/Lib9c/Action/RewardGold.cs b/Lib9c/Action/RewardGold.cs index 6d88760249..a4a60fcafb 100644 --- a/Lib9c/Action/RewardGold.cs +++ b/Lib9c/Action/RewardGold.cs @@ -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();