Source code for multiversx_sdk.network_providers.shared
from typing import Union
[docs]
def convert_tx_hash_to_string(tx_hash: Union[bytes, str]) -> str:
if isinstance(tx_hash, bytes):
return tx_hash.hex()
return tx_hash
from typing import Union
[docs]
def convert_tx_hash_to_string(tx_hash: Union[bytes, str]) -> str:
if isinstance(tx_hash, bytes):
return tx_hash.hex()
return tx_hash