From 1dd56b282a02ad8fab8b875131dce17dbb1f7fca Mon Sep 17 00:00:00 2001 From: jacksoom Date: Sat, 7 Oct 2023 16:50:30 +0800 Subject: [PATCH] feat(cli): Remove ref sk --- grpc-client/src/cli.rs | 2 +- grpc-client/src/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc-client/src/cli.rs b/grpc-client/src/cli.rs index efa9f97..f575d42 100644 --- a/grpc-client/src/cli.rs +++ b/grpc-client/src/cli.rs @@ -139,7 +139,7 @@ impl GrpcClient { #[allow(clippy::too_many_arguments)] pub async fn broadcast_tx_sync( &mut self, - sign_key: &SigningKey, + sign_key: SigningKey, addr: &String, msg: T, coin: &Coin, diff --git a/grpc-client/src/tests.rs b/grpc-client/src/tests.rs index b5b03b1..eab911d 100644 --- a/grpc-client/src/tests.rs +++ b/grpc-client/src/tests.rs @@ -67,7 +67,7 @@ async fn test_submit_tx() { let resp = client .broadcast_tx_sync( - &sender_private_key, + sender_private_key, &sender_account_id.to_string(), msg_send, &coin,