diff --git a/src/api/types/enhanced.rs b/src/api/types/enhanced.rs index dcfff02..ac1df76 100644 --- a/src/api/types/enhanced.rs +++ b/src/api/types/enhanced.rs @@ -54,7 +54,7 @@ pub struct CompressedNftEvent { pub tree_id: String, pub leaf_index: Option, pub seq: Option, - pub asset_id: String, + pub asset_id: Option, pub instruction_index: Option, pub inner_instruction_index: Option, pub new_leaf_owner: Option, diff --git a/src/lib.rs b/src/lib.rs index d8900cc..6229d4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,7 +159,17 @@ mod tests { let res = client.parse_transaction(&sigs[0]).await?; assert!(!res.is_empty()); assert!(res[0].timestamp > 0); + Ok(()) + } + #[rstest::rstest] + #[tokio::test] + #[allow(clippy::unwrap_used)] + async fn test_enhanced_history_txn(config: Config) -> color_eyre::Result<()> { + if config.client.is_none() { + return Ok(()); + } + let client = config.client(); let res = client.parsed_transaction_history("M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K").await?; assert!(!res.is_empty()); assert!(res[0].timestamp > 0);