diff --git a/pkg/solana/chainreader/batch.go b/pkg/solana/chainreader/batch.go index 90f4467ae..f715216f9 100644 --- a/pkg/solana/chainreader/batch.go +++ b/pkg/solana/chainreader/batch.go @@ -76,7 +76,8 @@ func doMethodBatchCall(ctx context.Context, lggr logger.Logger, client MultipleA results := make([]batchResultWithErr, len(batch)) // create the list of public keys to fetch - var keys []solana.PublicKey + // Solana RPC expects at least an empty list, not nil + keys := []solana.PublicKey{} // map batch call index to key index (some calls are event reads and will be handled by a different binding) dataMap := make(map[int]int)