diff --git a/src/lib.rs b/src/lib.rs index 65ea878..5565634 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,7 +95,6 @@ pub mod ledgers; /// The models module, here the Request and Response traits are defined pub mod models; pub mod xdr; - /// The asset type /// Native - The native asset /// Issued - An issued asset diff --git a/src/xdr/mod.rs b/src/xdr/mod.rs index a13757d..7dd464c 100644 --- a/src/xdr/mod.rs +++ b/src/xdr/mod.rs @@ -14,6 +14,7 @@ mod tests { let encoded: &[u8] = "AAAAAGPZj1Nu5o0bJ7W4nyOvUxG3Vpok+vFAOtC1K2M7B76ZuZRHr9UdXKbTKiclfOjy72YZFJUkJPVcKT5htvorm1QAAAAAZImGNAAAAAAAAAABAAAAAKgkzRi8nXUGTSmaW1uspDvDqi8yaTgVPYwvm7XLbfAzAAAAQLuRQK8ocAjytwfQelkpwZQa5+jReIO0pbr/9BbUbIffRxQN4Z76J3qDIn5lSJpn0OkYL8ZLPGP0W/S1vlTj5w/fP2GYBKkv20BXGS3EPddI6neK3FK8SYzoBSTAFLgRGXNSJ+05hGEpEjdoewhEaqLJsJbgyYpGLa3aVp8F3SSEAAAAAg3gtrOnZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkBfXhAAAAAGQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=".as_bytes(); let decoded = stellar_xdr::LedgerHeader::from_xdr_base64(encoded).unwrap(); + println!("Decoded: {:?}", decoded); assert_eq!(decoded.ledger_version, 0); assert_eq!(