cow-sdk-app-data 0.1.0-alpha.10

CoW Protocol app-data encoding, validation, and CID compatibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cow_sdk_app_data::AppDataError;
use cow_sdk_core::Cancelled;

#[test]
fn cancelled_marker_lifts_to_app_data_error_cancelled() {
    fn assert_from_cancelled<T: From<Cancelled>>() {}

    assert_from_cancelled::<AppDataError>();
    assert!(matches!(
        AppDataError::from(Cancelled),
        AppDataError::Cancelled
    ));
}