Skip to content

Commit 1dfae88

Browse files
authored
Merge pull request #235 from InjectiveLabs/fix/cookie_assistant_for_custom_network
Fix/cookie assistant for custom network
2 parents f2d9e85 + 9918722 commit 1dfae88

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ make tests
9292
* 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
9393
* Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens
9494
* Examples have been adapted to create Composer instances using the AsyncClient
95+
* Added new nodes (bare-metal load balancing nodes) for mainnet
96+
* 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
9597

9698
**0.7.1.1**
9799
* Fixed Testnet network URLs

pyinjective/core/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,9 @@ def custom(
370370
grpc_explorer_endpoint,
371371
chain_id,
372372
env,
373-
cookie_assistant: CookieAssistant,
373+
cookie_assistant: Optional[CookieAssistant] = None,
374374
):
375+
assistant = cookie_assistant or DisabledCookieAssistant()
375376
return cls(
376377
lcd_endpoint=lcd_endpoint,
377378
tm_websocket_endpoint=tm_websocket_endpoint,
@@ -381,7 +382,7 @@ def custom(
381382
chain_id=chain_id,
382383
fee_denom="inj",
383384
env=env,
384-
cookie_assistant=cookie_assistant
385+
cookie_assistant=assistant
385386
)
386387

387388
def string(self):

0 commit comments

Comments
 (0)