From 44c6e65b581a08b5994a86792978f34ce9c51d5d Mon Sep 17 00:00:00 2001 From: Trinity Date: Mon, 30 Sep 2024 11:25:14 +0700 Subject: [PATCH] lint --- contracts/consumer/osmosis-price-feed/src/contract.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/consumer/osmosis-price-feed/src/contract.rs b/contracts/consumer/osmosis-price-feed/src/contract.rs index 43a12446..725aabe8 100644 --- a/contracts/consumer/osmosis-price-feed/src/contract.rs +++ b/contracts/consumer/osmosis-price-feed/src/contract.rs @@ -191,7 +191,7 @@ mod tests { fn json_binary() { let resp = Binary::from_base64("eyJyZXN1bHQiOiJleUprWVhSaElqb2lRMmhqTmtaUmIxUk5WRUYzVFVSQmQwMUVRWGROUkVGM1RVUkJkMDFFUVhkTlFUMDlJbjA9In0=").unwrap(); - let ack_result: AcknowledgementResult = from_json(&resp).unwrap(); + let ack_result: AcknowledgementResult = from_json(resp).unwrap(); assert_eq!( ack_result.result.to_string(), String::from("eyJkYXRhIjoiQ2hjNkZRb1RNVEF3TURBd01EQXdNREF3TURBd01EQXdNQT09In0=") @@ -203,7 +203,7 @@ mod tests { String::from("Chc6FQoTMTAwMDAwMDAwMDAwMDAwMDAwMA==") ); - let response: CosmosResponse = decode_response(&packet_ack.data.to_vec()).unwrap(); + let response: CosmosResponse = decode_response(&packet_ack.data).unwrap(); assert_eq!(response.responses.len(), 1); } }