Trait ToLog

Source
pub trait ToLog {
    // Required method
    fn to_log(&self, contract: H160) -> Log;
}
Expand description

Implementation of this trait should not be written manually, instead use crate::ToLog proc macros.

See also evm_coder_procedural::ToLog, solidity docs on events

Required Methods§

Source

fn to_log(&self, contract: H160) -> Log

Convert event to ethereum::Log. Because event by itself doesn’t contains current contract address, it should be specified manually.

Implementors§