Skip to content

Commit 5c10acf

Browse files
authored
Apply suggestions from code review
1 parent b6f68d0 commit 5c10acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/beacon-node/src/chain/rewards/blockRewards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function computeBlockRewards(
2727
): Promise<BlockRewards> {
2828
const fork = preState.config.getForkName(block.slot);
2929
const {attestations: cachedAttestationsReward = 0, syncAggregate: cachedSyncAggregateReward = 0} =
30-
postState?.proposerRewards || {};
30+
postState?.proposerRewards ?? {};
3131
let blockAttestationReward = cachedAttestationsReward;
3232
let syncAggregateReward = cachedSyncAggregateReward;
3333

@@ -65,7 +65,7 @@ function computeBlockAttestationRewardPhase0(
6565
_block: phase0.BeaconBlock,
6666
_preState: CachedBeaconStatePhase0
6767
): SubRewardValue {
68-
throw new Error("Unsupported fork! Block attestation reward calculation is not yet available in phase0");
68+
throw new Error("Unsupported fork! Block attestation reward calculation is not available in phase0");
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)