From 529897bd00cd2cffbafff449c16b41bf63aac73f Mon Sep 17 00:00:00 2001 From: Slavomir Date: Thu, 1 Jul 2021 18:02:09 +0200 Subject: [PATCH] RPC: distinguish between GetMultipleAccounts and GetMultipleAccountsWithOpts --- rpc/getMultipleAccounts.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rpc/getMultipleAccounts.go b/rpc/getMultipleAccounts.go index 3317dad..cf41e7a 100644 --- a/rpc/getMultipleAccounts.go +++ b/rpc/getMultipleAccounts.go @@ -14,6 +14,21 @@ type GetMultipleAccountsResult struct { // GetMultipleAccounts returns the account information for a list of Pubkeys. func (cl *Client) GetMultipleAccounts( + ctx context.Context, + accounts ...solana.PublicKey, +) (out *GetMultipleAccountsResult, err error) { + return cl.GetMultipleAccountsWithOpts( + ctx, + accounts, + "", + "", + nil, + nil, + ) +} + +// GetMultipleAccountsWithOpts returns the account information for a list of Pubkeys. +func (cl *Client) GetMultipleAccountsWithOpts( ctx context.Context, accounts []solana.PublicKey, encoding EncodingType,