Skip to content

Commit

Permalink
fix: update optional to follow type pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
R-K-H committed Dec 30, 2022
1 parent b9e9615 commit e24e84c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web3.js/src/connection.ts
Expand Up @@ -768,7 +768,7 @@ export type InflationReward = {
/** post balance of the account in lamports */
postBalance: number;
/** vote account commission when the reward was credited */
commission: number | null;
commission?: number | null;
};

/**
Expand Down Expand Up @@ -1236,7 +1236,7 @@ export type BlockResponse = {
/** Type of reward received */
rewardType: string | null;
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
commission: number | null;
commission?: number | null;
}>;
/** The unix timestamp of when the block was processed */
blockTime: number | null;
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export type ParsedBlockResponse = {
/** Type of reward received */
rewardType: string | null;
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
commission: number | null;
commission?: number | null;
}>;
/** The unix timestamp of when the block was processed */
blockTime: number | null;
Expand Down Expand Up @@ -1352,7 +1352,7 @@ export type VersionedBlockResponse = {
/** Type of reward received */
rewardType: string | null;
/** Vote account commission when the reward was credited, only present for voting and staking rewards */
commission: number | null;
commission?: number | null;
}>;
/** The unix timestamp of when the block was processed */
blockTime: number | null;
Expand Down Expand Up @@ -1408,7 +1408,7 @@ export type ConfirmedBlock = {
lamports: number;
postBalance: number | null;
rewardType: string | null;
commission: number | null;
commission?: number | null;
}>;
/** The unix timestamp of when the block was processed */
blockTime: number | null;
Expand Down

0 comments on commit e24e84c

Please sign in to comment.