You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug in the type definition of TransactionJsonParsed. The accountKeys field is typed as a fixed-length tuple instead of an array, causing a TypeScript error when accessing or defining multiple keys.
This limits accountKeys to a single element and throws an error when accessing indexes beyond [0]. However, accountKeys should support multiple objects.
Overview
I found a bug in the type definition of TransactionJsonParsed. The
accountKeys
field is typed as a fixed-length tuple instead of an array, causing a TypeScript error when accessing or defining multiple keys.Steps to reproduce
Description of bug
The
accountKeys
field is typed as:This limits
accountKeys
to a single element and throws an error when accessing indexes beyond[0]
. However,accountKeys
should support multiple objects.Suggested Fix
Change the type to:
The text was updated successfully, but these errors were encountered: