fix: add transactionCount field to GetEpochInfo

(cherry picked from commit 01fe835e73)
This commit is contained in:
Michael Vines
2020-12-17 10:04:39 -08:00
parent 6f2b37b015
commit 34b3387104

View File

@@ -275,6 +275,7 @@ const GetInflationGovernorResult = struct({
* @property {number} slotsInEpoch
* @property {number} absoluteSlot
* @property {number} blockHeight
* @property {number} transactionCount
*/
type EpochInfo = {
epoch: number,
@@ -282,6 +283,7 @@ type EpochInfo = {
slotsInEpoch: number,
absoluteSlot: number,
blockHeight: number | null,
transactionCount: number | null,
};
const GetEpochInfoResult = struct({
@@ -290,6 +292,7 @@ const GetEpochInfoResult = struct({
slotsInEpoch: 'number',
absoluteSlot: 'number',
blockHeight: 'number?',
transactionCount: 'number?',
});
/**