diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index cea9b8236f..7452dc3158 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -399,9 +399,9 @@ const GetVoteAccounts = jsonRpcResult( nodePubkey: 'string', activatedStake: 'number', epochVoteAccount: 'boolean', - epochCredits: struct.union(['null', struct.list([ + epochCredits: struct.list([ struct.tuple(['number', 'number', 'number']), - ])]), + ]), commission: 'number', lastVote: 'number', rootSlot: 'number?', @@ -413,9 +413,9 @@ const GetVoteAccounts = jsonRpcResult( nodePubkey: 'string', activatedStake: 'number', epochVoteAccount: 'boolean', - epochCredits: struct.union(['null', struct.list([ + epochCredits: struct.list([ struct.tuple(['number', 'number', 'number']), - ])]), + ]), commission: 'number', lastVote: 'number', rootSlot: 'number?',