What happened?
Currently when the error data is empty, the error message is converted to:
let selector = decode_selector(calldata);
format!("function not found for selector '{selector}' and no fallback defined").as_bytes().to_vec()
This doesn't align with actual blockchain behavior, which passes empty error data as-is.
platform
Expected behavior
Motsu should just pass the error data as-is, i.e. the if e.is_empty() check should be removed.
Contribution Guidelines