You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: instead of returning a String, return a ParamType
}/// Given a string (typically a line of decompiled source code), extract a type cast if one exists.// TODO: instead of returning a String, return a ParamType/// ```/// use heimdall_common::ether::evm::core::types::find_cast;////// let line = "uint256(0x000011)";/// let (range, cast_type) = find_cast(line).expect("failed to find type cast");/// assert_eq!(range, 8..16);/// assert_eq!(&line[range], "0x000011");/// assert_eq!(cast_type, "uint256");/// ```pubfn find_cast(line:&str) -> Result<(Range<usize>,String),Error>{// find the start of the castmatchTYPE_CAST_REGEX.find(line).expect("Failed to find type cast."){Some(m) => {
The text was updated successfully, but these errors were encountered:
New Codebase TODO
instead of returning a String, return a ParamType
Location
heimdall-rs/common/src/ether/evm/core/types.rs
Line 287 in 0cf2b6e
The text was updated successfully, but these errors were encountered: