-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Overview
I'm looking to bridge a token to another chain and it would be helpful to get the contract address on the destination chain without having to switch networks....
Specification
Would be helpful to pass an optional argument to the getitem method and conditionally retrieve the address on that chain.
def __getitem__(self, symbol: str, chain_id: int) -> ContractInstance:
try:
token_info = self._manager.get_token_info(
symbol, chain_id=chain_id if chain_id else self.network_manager.network.chain_id
)
Dependencies
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels