pub fn validate_signature_bytes(
actual: &[u8],
expected_hex: &str,
event_name: &str,
) -> Result<()>Expand description
Validate event signature matches expected hash.
The first topic (topic0) of an Ethereum event log contains the keccak256 hash of the event signature. This function validates that the actual signature matches the expected one.
§Errors
Returns an error if the signatures don’t match.