Skip to content

Commit

Permalink
fix anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Apr 8, 2024
1 parent 988bf6b commit 37a17e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/core/src/client_api/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub async fn update(
database_dir: Option<PathBuf>
) -> Result<(), anyhow::Error> {
//if config.release {
anyhow::bail!("Cannot publish contracts in the network yet");
// anyhow::bail!("Cannot publish contracts in the network yet");
//}
let key = ContractInstanceId::try_from(key)?.into();
println!("Updating contract {key}");
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/client_api/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl API {
// anyhow::bail!("Cannot publish contracts in the network yet");
//}
let key = ContractInstanceId::try_from(key)?.into();
println!("Updating contract {key}");
println!("Updating contract {key:?}");
let data = StateDelta::from(delta).into();
let request = ContractRequest::Update { key, data }.into();
commands::execute_command(request, Some(Config::conf().contracts_dir()), Some(Config::conf().delegates_dir()), Some(Config::conf().secrets_dir()), Some(Config::conf().db_dir())).await
Expand Down
2 changes: 1 addition & 1 deletion stdlib

0 comments on commit 37a17e5

Please sign in to comment.