From ef1b4d8e8fd61e59204ffbd27bbc8d114f84ef99 Mon Sep 17 00:00:00 2001 From: Kollan House Date: Fri, 30 Dec 2022 08:38:24 +0800 Subject: [PATCH] fix: remove optional to follow typepattern --- web3.js/src/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 254d00d9d2e04f..0c92c0fffad071 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -782,7 +782,7 @@ const GetInflationRewardResult = jsonRpcResult( effectiveSlot: number(), amount: number(), postBalance: number(), - commission: optional(nullable(number())), + commission: nullable(number()), }), ), ), @@ -2307,7 +2307,7 @@ const RewardsResult = pick({ lamports: number(), postBalance: nullable(number()), rewardType: nullable(string()), - commission: optional(nullable(number())), + commission: nullable(number()), }); /**