From 7e19e3937b5a9694f2257b46a1e96d19e2f6a806 Mon Sep 17 00:00:00 2001 From: Calvin Lau <38898718+calvinaco@users.noreply.github.com> Date: Fri, 12 Jul 2024 01:38:31 +0800 Subject: [PATCH 1/2] Problem: Operator address is not displayed when using GKMS Solution: Display operator address on instantiation --- core/lib/eth_client/src/clients/http/signing.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/eth_client/src/clients/http/signing.rs b/core/lib/eth_client/src/clients/http/signing.rs index ea2c46db1..dec82ef6f 100644 --- a/core/lib/eth_client/src/clients/http/signing.rs +++ b/core/lib/eth_client/src/clients/http/signing.rs @@ -51,15 +51,16 @@ impl GKMSSigningClient { query_client: Box, key_name: String, ) -> Self { + let operator_address = signer.get_address().await.expect("error getting operator address from signer"); let signer = match GKMSSigner::new(key_name, l1_chain_id.0).await { Ok(s) => s, Err(e) => panic!("Failed to create GKMSSigner: {:?}", e), }; - + tracing::info!("Operator address: {operator_address:?}"); SigningClient::new( query_client, hyperchain_contract(), - signer.get_address().await.unwrap(), + operator_address, signer, diamond_proxy_addr, default_priority_fee_per_gas.into(), From 721ec68e7c5c858aeb559da34aeae5d6d1646d74 Mon Sep 17 00:00:00 2001 From: Calvin Lau <38898718+calvinaco@users.noreply.github.com> Date: Fri, 12 Jul 2024 01:39:41 +0800 Subject: [PATCH 2/2] Update signing.rs --- core/lib/eth_client/src/clients/http/signing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/eth_client/src/clients/http/signing.rs b/core/lib/eth_client/src/clients/http/signing.rs index dec82ef6f..f43d7f485 100644 --- a/core/lib/eth_client/src/clients/http/signing.rs +++ b/core/lib/eth_client/src/clients/http/signing.rs @@ -51,11 +51,11 @@ impl GKMSSigningClient { query_client: Box, key_name: String, ) -> Self { - let operator_address = signer.get_address().await.expect("error getting operator address from signer"); let signer = match GKMSSigner::new(key_name, l1_chain_id.0).await { Ok(s) => s, Err(e) => panic!("Failed to create GKMSSigner: {:?}", e), }; + let operator_address = signer.get_address().await.expect("error getting operator address from signer"); tracing::info!("Operator address: {operator_address:?}"); SigningClient::new( query_client,