Skip to content

Commit

Permalink
fix: remove optional to follow typepattern
Browse files Browse the repository at this point in the history
  • Loading branch information
R-K-H committed Dec 30, 2022
1 parent 311ba4f commit ef1b4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ const GetInflationRewardResult = jsonRpcResult(
effectiveSlot: number(),
amount: number(),
postBalance: number(),
commission: optional(nullable(number())),
commission: nullable(number()),
}),
),
),
Expand Down Expand Up @@ -2307,7 +2307,7 @@ const RewardsResult = pick({
lamports: number(),
postBalance: nullable(number()),
rewardType: nullable(string()),
commission: optional(nullable(number())),
commission: nullable(number()),
});

/**
Expand Down

0 comments on commit ef1b4d8

Please sign in to comment.