pub struct expectEmit_0Call {
pub checkTopic1: bool,
pub checkTopic2: bool,
pub checkTopic3: bool,
pub checkData: bool,
}Expand description
Prepare an expected log with (bool checkTopic1, bool checkTopic2, bool checkTopic3, bool checkData.).
Call this function, then emit an event, then call a function. Internally after the call, we check if
logs were emitted in the expected order with the expected topics and data (as specified by the booleans).
Must be placed immediately before the call you want to assert on. If the next call reverts and the
revert is caught by the caller (low-level call or try/catch), the expectation remains active and may
be satisfied by a log emitted from a later call.
Function with signature expectEmit(bool,bool,bool,bool) and selector 0x491cc7c2.
function expectEmit(bool checkTopic1, bool checkTopic2, bool checkTopic3, bool checkData) external;Fields§
§checkTopic1: bool§checkTopic2: bool§checkTopic3: bool§checkData: boolTrait Implementations§
Source§impl CheatcodeDef for expectEmit_0Call
impl CheatcodeDef for expectEmit_0Call
Source§impl Clone for expectEmit_0Call
impl Clone for expectEmit_0Call
Source§fn clone(&self) -> expectEmit_0Call
fn clone(&self) -> expectEmit_0Call
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for expectEmit_0Call
impl Debug for expectEmit_0Call
Source§impl JsonAbiExt for expectEmit_0Call
impl JsonAbiExt for expectEmit_0Call
Source§impl SolCall for expectEmit_0Call
impl SolCall for expectEmit_0Call
Source§const SIGNATURE: &'static str = "expectEmit(bool,bool,bool,bool)"
const SIGNATURE: &'static str = "expectEmit(bool,bool,bool,bool)"
Source§type Parameters<'a> = (Bool, Bool, Bool, Bool)
type Parameters<'a> = (Bool, Bool, Bool, Bool)
Source§type Token<'a> = <<expectEmit_0Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
type Token<'a> = <<expectEmit_0Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
Source§type Return = expectEmit_0Return
type Return = expectEmit_0Return
Source§type ReturnTuple<'a> = ()
type ReturnTuple<'a> = ()
Source§type ReturnToken<'a> = <<expectEmit_0Call as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
type ReturnToken<'a> = <<expectEmit_0Call as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
Source§fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
Source§fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
Source§fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
Source§fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
§fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_decode(data: &[u8]) -> Result<Self, Error>
fn abi_decode(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
§fn abi_encode(&self) -> Vec<u8> ⓘ
fn abi_encode(&self) -> Vec<u8> ⓘ
§fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for expectEmit_0Call
impl RefUnwindSafe for expectEmit_0Call
impl Send for expectEmit_0Call
impl Sync for expectEmit_0Call
impl Unpin for expectEmit_0Call
impl UnsafeUnpin for expectEmit_0Call
impl UnwindSafe for expectEmit_0Call
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes