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§
Sourcefn to_log(&self, contract: H160) -> Log
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.