Skip to main content

constant_revert_selector

Function constant_revert_selector 

Source
fn constant_revert_selector(bytecode: &[u8], pc: usize) -> Option<[u8; 4]>
Expand description

Recognizes a constant four-byte error payload in a small straight-line stub. Memory and the incoming stack are unknown: only bytes explicitly stored by this stub can establish a selector. Calls, branches, dynamic data, and unsupported operations deliberately leave it unrecognized.