fix: ignore extra space field in parsed accounts

This commit is contained in:
Justin Starry
2020-08-11 16:32:42 +08:00
committed by Justin Starry
parent c0d6761f63
commit 0c97e39675

View File

@ -658,7 +658,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext(
executable: 'boolean',
owner: 'string',
lamports: 'number',
data: struct.object({
data: struct.pick({
program: 'string',
parsed: 'any',
}),
@ -722,7 +722,7 @@ const ParsedAccountInfoResult = struct.object({
lamports: 'number',
data: struct.union([
'string',
struct.object({
struct.pick({
program: 'string',
parsed: 'any',
}),