Skip to content

v2.8.0

Latest

Choose a tag to compare

@codama-releases codama-releases released this 20 Oct 01:11
· 3 commits to main since this release
826a99e

Minor Changes

  • #272 d5a4501 Thanks @amilz! - Generated account fetchers now accept clients exposing an rpc property — such as Kit clients — alongside raw RPCs — i.e. fetchX, fetchMaybeX, fetchXFromSeeds and fetchMaybeXFromSeeds accept ClientWithRpc<GetAccountInfoApi> whilst fetchAllX and fetchAllMaybeX accept ClientWithRpc<GetMultipleAccountsApi> — so that fetchMint(client, address) works without reaching for client.rpc. The fetchers unwrap such clients to their RPC before calling fetchEncodedAccount and fetchEncodedAccounts from @solana/kit. Passing an RPC directly behaves exactly as before.