Minor Changes
- #272
d5a4501Thanks @amilz! - Generated account fetchers now accept clients exposing anrpcproperty — such as Kit clients — alongside raw RPCs — i.e.fetchX,fetchMaybeX,fetchXFromSeedsandfetchMaybeXFromSeedsacceptClientWithRpc<GetAccountInfoApi>whilstfetchAllXandfetchAllMaybeXacceptClientWithRpc<GetMultipleAccountsApi>— so thatfetchMint(client, address)works without reaching forclient.rpc. The fetchers unwrap such clients to their RPC before callingfetchEncodedAccountandfetchEncodedAccountsfrom@solana/kit. Passing an RPC directly behaves exactly as before.