Skip to content

Commit

Permalink
core-app-cli: fix gas
Browse files Browse the repository at this point in the history
  • Loading branch information
zo-el committed Sep 17, 2024
1 parent 139da2a commit a831418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/core_app_cli/src/actions/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use anyhow::Result;
use holochain_types::dna::AgentPubKey;
use holochain_types::prelude::{FunctionName, ZomeName};
use hpos_hc_connect::app_connection::CoreAppRoleName;
use hpos_hc_connect::hf_agent::HfAgent;
use hpos_hc_connect::hha_agent::CoreAppAgent;
use hpos_hc_connect::holofuel_types::MigrationCloseStateV1Handler;

pub async fn get_my_summary() -> Result<()> {
let mut agent = HfAgent::spawn(None).await?;
let mut agent = CoreAppAgent::spawn(None).await?;

let summary: MigrationCloseStateV1Handler = agent
.app
Expand All @@ -23,7 +23,7 @@ pub async fn get_my_summary() -> Result<()> {
}

pub async fn get_agent_summary(pub_key: AgentPubKey) -> Result<()> {
let mut agent = HfAgent::spawn(None).await?;
let mut agent = CoreAppAgent::spawn(None).await?;

let summary: MigrationCloseStateV1Handler = agent
.app
Expand Down
2 changes: 1 addition & 1 deletion crates/hpos_connect_hc/src/hf_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl HfAgent {
let app_file = HappsFile::load_happ_file_from_env(config)?;
let holofuel = app_file
.holofuel()
.ok_or(anyhow!("There's no core-app defined in a happs file"))?;
.ok_or(anyhow!("There's no holofuel app defined in a happs file"))?;

// connect to lair
let passphrase = sodoken::BufRead::from(default_password()?.as_bytes().to_vec());
Expand Down

0 comments on commit a831418

Please sign in to comment.