MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / test_parse_error_ok

Function test_parse_error_ok

contract-bindings/src/error_parser.rs:219–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected