fix: surface full block rewards type

This commit is contained in:
Michael Vines 2020-10-09 12:41:10 -07:00
parent c5c8da1ac0
commit 1b16790325
1 changed files with 4 additions and 0 deletions

View File

@ -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']),
}),
]),
]),