From 3a63cb1a51d9826ba9908827d47fc363ba0c9753 Mon Sep 17 00:00:00 2001 From: abel Date: Wed, 30 Aug 2023 09:20:40 -0300 Subject: [PATCH 1/2] (fix) Made cookie_assistant parameter optional when creating a custom network instance --- pyinjective/core/network.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyinjective/core/network.py b/pyinjective/core/network.py index 50db599f..e49d48e7 100644 --- a/pyinjective/core/network.py +++ b/pyinjective/core/network.py @@ -370,8 +370,9 @@ def custom( grpc_explorer_endpoint, chain_id, env, - cookie_assistant: CookieAssistant, + cookie_assistant: Optional[CookieAssistant] = None, ): + assistant = cookie_assistant or DisabledCookieAssistant() return cls( lcd_endpoint=lcd_endpoint, tm_websocket_endpoint=tm_websocket_endpoint, @@ -381,7 +382,7 @@ def custom( chain_id=chain_id, fee_denom="inj", env=env, - cookie_assistant=cookie_assistant + cookie_assistant=assistant ) def string(self): From 9918722e37fe3e42ead9c0c47410e745b76d11f6 Mon Sep 17 00:00:00 2001 From: abel Date: Wed, 30 Aug 2023 09:30:06 -0300 Subject: [PATCH 2/2] (fix) Updated README.md Changelogs with the latest changes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fa59c16e..bf1386f9 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,8 @@ make tests * The Composer can still be instantiated without markets and tokens. When markets and tokens are not provided the Composer loads the required information from the Denoms used in previous versions * Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens * Examples have been adapted to create Composer instances using the AsyncClient +* Added new nodes (bare-metal load balancing nodes) for mainnet +* Refactored the cookies management logic into a cookie assistant. Added the required logic to support the new cookies format for bare-metal load balanced nodes **0.7.1.1** * Fixed Testnet network URLs