pub struct expectRevert_3Call {
pub reverter: Address,
}Expand description
Expects an error with any revert data on next call to reverter address.
The reverter argument is matched against the address associated with
the frame that produced the revert:
- For a CALL: the address that was called.
- For a CREATE / CREATE2: the would-be deployed address of the failed deployment (computed from the deployer + nonce, or salt + initcode).
For a single expected revert, the innermost reverting frame wins in
nested CALL, CREATE, or mixed chains. With count > 1, nested
CREATE / CREATE2 chains apply the same rule independently to each
iteration; nested CALL chains keep their existing
outermost-call-per-iteration behavior.
Function with signature expectRevert(address) and selector 0xd814f38a.
function expectRevert(address reverter) external;Fields§
§reverter: AddressTrait Implementations§
Source§impl CheatcodeDef for expectRevert_3Call
impl CheatcodeDef for expectRevert_3Call
Source§impl Clone for expectRevert_3Call
impl Clone for expectRevert_3Call
Source§fn clone(&self) -> expectRevert_3Call
fn clone(&self) -> expectRevert_3Call
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 expectRevert_3Call
impl Debug for expectRevert_3Call
Source§impl JsonAbiExt for expectRevert_3Call
impl JsonAbiExt for expectRevert_3Call
Source§impl SolCall for expectRevert_3Call
impl SolCall for expectRevert_3Call
Source§type Parameters<'a> = (Address,)
type Parameters<'a> = (Address,)
Source§type Token<'a> = <<expectRevert_3Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
type Token<'a> = <<expectRevert_3Call as SolCall>::Parameters<'a> as SolType>::Token<'a>
Source§type Return = expectRevert_3Return
type Return = expectRevert_3Return
Source§type ReturnTuple<'a> = ()
type ReturnTuple<'a> = ()
Source§type ReturnToken<'a> = <<expectRevert_3Call as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
type ReturnToken<'a> = <<expectRevert_3Call 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 expectRevert_3Call
impl RefUnwindSafe for expectRevert_3Call
impl Send for expectRevert_3Call
impl Sync for expectRevert_3Call
impl Unpin for expectRevert_3Call
impl UnsafeUnpin for expectRevert_3Call
impl UnwindSafe for expectRevert_3Call
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: 20 bytes