From 0cd6fa82dca4257ab8a98bbbf503c153a54f4b31 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Wed, 16 Feb 2022 09:08:56 +0100 Subject: [PATCH] BetterClient to use the first rpc url from list in the same way as CompoundRPCCaller --- mango/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mango/client.py b/mango/client.py index 5fd68e1..b5a51a9 100644 --- a/mango/client.py +++ b/mango/client.py @@ -900,7 +900,7 @@ class BetterClient: if blockhash_cache_duration > 0: blockhash_cache = BlockhashCache(blockhash_cache_duration) client: Client = Client( - endpoint=cluster_url.rpc, + endpoint=cluster_urls[0].rpc, commitment=commitment, blockhash_cache=blockhash_cache, )