From 1b167903257e048ead482fff63dff7fb63f14036 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 9 Oct 2020 12:41:10 -0700 Subject: [PATCH] fix: surface full block rewards type --- web3.js/src/connection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index 4e7185d867..8a38e0e406 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -502,6 +502,8 @@ type ConfirmedBlock = { rewards: Array<{ pubkey: string, lamports: number, + postBalance: number | null, + rewardType: string | null, }>, }; @@ -1152,6 +1154,8 @@ export const GetConfirmedBlockRpcResult = jsonRpcResult( struct({ pubkey: 'string', lamports: 'number', + postBalance: struct.union(['number', 'undefined']), + rewardType: struct.union(['string', 'undefined']), }), ]), ]),