extract_log_result_error

Function extract_log_result_error 

Source
fn extract_log_result_error(text: &str) -> Option<String>
Expand description

Extract the last decoded error name from a LogResult { results: [...] } block.

The backend formats failed transaction logs as: LogResult { results: [Ok(“Event1”), Ok(“Event2”), Ok(“ErrorName”)] }

The last Ok("...") entry that matches a known error variant is the error.