Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity committed Sep 24, 2024
1 parent 4c8ebac commit 0f8fa11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/nns/src/commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ pub struct ImportOpts {
pub async fn exec(opts: ImportOpts, dfx_cache_path: &Path) -> anyhow::Result<()> {
let dfx = DfxInterfaceBuilder::new()
.anonymous()
.with_extension_manager_from_cache_dir(dfx_cache_path)
.with_extension_manager_from_cache_path(dfx_cache_path)
.build()
.await?;

let config = Config::from_current_dir(None)?;
let config = dfx.config();
if config.is_none() {
anyhow::bail!(crate::errors::DFXJSON_NOT_FOUND);
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/nns/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct InstallOpts {
pub async fn exec(opts: InstallOpts, dfx_cache_path: &Path) -> anyhow::Result<()> {
let dfx = DfxInterfaceBuilder::new()
.anonymous()
.with_extension_manager_from_cache_dir(dfx_cache_path)
.with_extension_manager_from_cache_path(dfx_cache_path)
.build()
.await?;
let mut network_descriptor = dfx.network_descriptor().clone();
Expand Down

0 comments on commit 0f8fa11

Please sign in to comment.