normalise_log_topic

Documentation for eth_defi.erc_4626.settlement_events.normalise_log_topic function.

normalise_log_topic(topic)

Normalise a Web3 log topic value to lowercase 0x hex.

Parameters

topic (Union[hexbytes.main.HexBytes, bytes, str]) – Topic as bytes, HexBytes, or string.

Returns

Lower-case 0x-prefixed topic.

Return type

str