()
| 217 | |
| 218 | #[test] |
| 219 | fn test_parse_error_ok() { |
| 220 | // selector for "BottomUpCheckpointAlreadySubmitted" error |
| 221 | let err_bytes = const_hex::decode("d6bb62dd").unwrap(); |
| 222 | |
| 223 | let result = ContractErrorParser::parse_from_bytes(err_bytes.as_ref()).unwrap(); |
| 224 | assert_eq!(result.name, "BottomUpCheckpointAlreadySubmitted"); |
| 225 | assert!(matches!( |
| 226 | result.error_type, |
| 227 | crate::error_parser::ErrorType::IpcContract |
| 228 | )); |
| 229 | } |
| 230 | |
| 231 | #[test] |
| 232 | fn test_parse_standard_revert() { |