fix: add space to ParsedAccountData (#11521)

This commit is contained in:
Tyera Eulberg
2020-08-11 21:44:28 -06:00
committed by GitHub
parent 9290e561e1
commit 5f05086ed6
3 changed files with 6 additions and 0 deletions

View File

@ -712,6 +712,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext(
data: struct.pick({
program: 'string',
parsed: 'any',
space: 'number',
}),
rentEpoch: 'number?',
}),
@ -776,6 +777,7 @@ const ParsedAccountInfoResult = struct.object({
struct.pick({
program: 'string',
parsed: 'any',
space: 'number',
}),
]),
rentEpoch: 'number?',
@ -1168,10 +1170,12 @@ type SlotInfo = {
* @typedef {Object} ParsedAccountData
* @property {string} program Name of the program that owns this account
* @property {any} parsed Parsed account data
* @property {number} space Space used by account data
*/
type ParsedAccountData = {
program: string,
parsed: any,
space: number,
};
/**