Trait evm_coder::ToTopic

source ·
pub trait ToTopic {
    // Required method
;
}
Expand description

Only items implementing ToTopic may be used as #[indexed] field in crate::ToLog macro usage.

See also (solidity docs on events)[https://docs.soliditylang.org/en/develop/contracts.html#events]

Required Methods§

source

Convert value to topic to be used in ethereum::Log

Implementations on Foreign Types§

source§

impl ToTopic for H256

source§

fn to_topic(&self) -> H256

source§

impl ToTopic for u32

source§

fn to_topic(&self) -> H256

source§

impl ToTopic for U256

source§

fn to_topic(&self) -> H256

Implementors§