fix: vote timestamp is nullable (#15774)
This commit is contained in:
@ -1,6 +1,14 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-redeclare */
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
||||||
|
|
||||||
import { array, number, optional, pick, string, StructType } from "superstruct";
|
import {
|
||||||
|
array,
|
||||||
|
nullable,
|
||||||
|
number,
|
||||||
|
optional,
|
||||||
|
pick,
|
||||||
|
string,
|
||||||
|
StructType,
|
||||||
|
} from "superstruct";
|
||||||
import { Pubkey } from "validators/pubkey";
|
import { Pubkey } from "validators/pubkey";
|
||||||
|
|
||||||
export type InitializeInfo = StructType<typeof InitializeInfo>;
|
export type InitializeInfo = StructType<typeof InitializeInfo>;
|
||||||
@ -32,7 +40,7 @@ export const VoteInfo = pick({
|
|||||||
vote: pick({
|
vote: pick({
|
||||||
hash: string(),
|
hash: string(),
|
||||||
slots: array(number()),
|
slots: array(number()),
|
||||||
timestamp: optional(number()),
|
timestamp: optional(nullable(number())),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user