Skip to content

Commit

Permalink
fix env var path
Browse files Browse the repository at this point in the history
  • Loading branch information
JayT106 committed Jun 28, 2024
1 parent 2dac568 commit a46abf0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/lib/eth_signer/src/g_kms_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ pub struct GKMSSigner {

impl GKMSSigner {
pub async fn new(key_name: String, _chain_id: u64) -> Result<Self, SignerError> {
let credentials_path = std::env::var("GOOGLE_APPLICATION_CREDENTIALS").map_err(|_| {
SignerError::SigningFailed(
"Environment variable GOOGLE_APPLICATION_CREDENTIALS not found".to_string(),
)
})?;
let credentials_path =
std::env::var(GOOGLE_APPLICATION_CREDENTIALS_PATH).map_err(|_| {
SignerError::SigningFailed(
"Environment variable GOOGLE_APPLICATION_CREDENTIALS not found".to_string(),
)
})?;

tracing::info!(
"KMS signer credentail path: {:?}",
Expand Down

0 comments on commit a46abf0

Please sign in to comment.