fix: support new 'feature-set' field in getVersion RPC method
This commit is contained in:
parent
972619edb4
commit
f63034752d
|
@ -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 = {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue