Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xForerunner committed Mar 17, 2024
1 parent d97beca commit 6d60fe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wasm-deploy/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
config::{ContractInfo, WorkspaceSettings, CONFIG, WORKSPACE_SETTINGS},
config::{ContractInfo, Env, WorkspaceSettings, CONFIG, WORKSPACE_SETTINGS},
error::DeployError,
};
use colored::Colorize;
Expand Down Expand Up @@ -89,9 +89,9 @@ pub fn get_addr(contract_name: &str) -> anyhow::Result<String> {
})?)
}

pub fn get_env() -> anyhow::Result<String> {
pub fn get_env() -> anyhow::Result<Env> {
let config = block_on(CONFIG.read());
Ok(config.get_active_env()?.to_string())
Ok(config.get_active_env()?.clone())
}

pub fn get_wallet_addr() -> anyhow::Result<String> {
Expand Down

0 comments on commit 6d60fe1

Please sign in to comment.