pub fn expect_revert_mismatch(
reason: Option<&[u8]>,
partial_match: bool,
reverter: Option<Address>,
reverted_by: Option<Address>,
retdata: &Bytes,
known_contracts: &Option<ContractsByArtifact>,
) -> Option<Error>Expand description
Returns the error that a call reverting with retdata, first failing in reverted_by, ends
with when it does not meet a vm.expectRevert of reason from reverter, or None when it
meets it. With partial_match, only the first 4 bytes of reason are compared.