diff --git a/xps-gateway/tests/integration_test.rs b/xps-gateway/tests/integration_test.rs index 197d363..8788674 100644 --- a/xps-gateway/tests/integration_test.rs +++ b/xps-gateway/tests/integration_test.rs @@ -47,10 +47,10 @@ async fn test_send_message() -> Result<(), Error> { .await?; let message = Message { - conversation_id: conversation_id, - payload: payload, + conversation_id, + payload, identity: me.address(), - signature: signature, + signature, }; let pre_nonce = context.conversation.nonce(me.address()).call().await?; @@ -87,10 +87,10 @@ async fn test_send_message_fail() -> Result<(), Error> { .await?; let message = Message { - conversation_id: conversation_id, - payload: payload, + conversation_id, + payload, identity: me.address(), - signature: signature, + signature, }; let pre_nonce = context.conversation.nonce(me.address()).call().await?; diff --git a/xps-gateway/tests/integration_util/mod.rs b/xps-gateway/tests/integration_util/mod.rs index ea6f3a5..e6711ce 100644 --- a/xps-gateway/tests/integration_util/mod.rs +++ b/xps-gateway/tests/integration_util/mod.rs @@ -106,7 +106,7 @@ where async fn deploy_to_anvil(anvil: &AnvilInstance) -> (Address, Address) { let wallet: LocalWallet = anvil.keys()[0].clone().into(); - let client = client(&anvil, wallet).await; + let client = client(anvil, wallet).await; let registry = DIDRegistry::deploy(client.clone(), ()) .unwrap() @@ -144,7 +144,7 @@ pub async fn get_user( index: usize, ) -> Arc, LocalWallet>> { let wallet: LocalWallet = anvil.keys()[index].clone().into(); - client(&anvil, wallet).await + client(anvil, wallet).await } static INIT: Once = Once::new();