fix: support new 'feature-set' field in getVersion RPC method

This commit is contained in:
Michael Vines 2020-09-29 10:55:23 -07:00
parent 972619edb4
commit f63034752d
3 changed files with 4 additions and 1 deletions

1
web3.js/module.d.ts vendored
View File

@ -212,6 +212,7 @@ declare module '@solana/web3.js' {
export type Version = { export type Version = {
'solana-core': string; 'solana-core': string;
'feature-set'?: number;
}; };
export type VoteAccountInfo = { export type VoteAccountInfo = {

View File

@ -226,6 +226,7 @@ declare module '@solana/web3.js' {
declare export type Version = { declare export type Version = {
'solana-core': string, 'solana-core': string,
'feature-set': ?number,
}; };
declare export type VoteAccountInfo = { declare export type VoteAccountInfo = {

View File

@ -350,8 +350,9 @@ const SignatureStatusResult = struct({err: TransactionErrorResult});
* @typedef {Object} Version * @typedef {Object} Version
* @property {string} solana-core Version of solana-core * @property {string} solana-core Version of solana-core
*/ */
const Version = struct({ const Version = struct.pick({
'solana-core': 'string', 'solana-core': 'string',
'feature-set': 'number?',
}); });
type SimulatedTransactionResponse = { type SimulatedTransactionResponse = {