Skip to content

Commit

Permalink
chore: update ic-agent to 0.39 (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
anchpop authored Dec 3, 2024
1 parent e73ffdb commit 2ec6162
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 27 deletions.
40 changes: 22 additions & 18 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ license = "Apache-2.0"
candid = "0.10.4"
candid_parser = "0.1.4"
dfx-core = { path = "src/dfx-core", version = "0.1.0" }
ic-agent = "0.38"
ic-agent = "0.39"
ic-asset = { path = "src/canisters/frontend/ic-asset", version = "0.21.0" }
ic-cdk = "0.13.1"
ic-identity-hsm = "0.38"
ic-utils = "0.38"
ic-identity-hsm = "0.39"
ic-utils = "0.39"

aes-gcm = "0.10.3"
anyhow = "1.0.56"
Expand Down
3 changes: 2 additions & 1 deletion src/dfx/src/commands/canister/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ To figure out the id of your wallet, run 'dfx identity get-wallet (--network ic)
.with_arg(arg_value)
.call()
.await
.context("Failed update call.")?,
.context("Failed update call.")?
.map(|(res, _)| res),
CallSender::Wallet(wallet_id) => {
let wallet = build_wallet_canister(*wallet_id, agent).await?;
let mut args = Argument::default();
Expand Down
6 changes: 3 additions & 3 deletions src/dfx/src/commands/canister/request_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ pub async fn exec(env: &dyn Environment, opts: RequestStatusOpts) -> DfxResult {
let blob = async {
let mut request_accepted = false;
loop {
match agent
let (response, _cert) = agent
.request_status_raw(&request_id, canister_id)
.await
.context("Failed to fetch request status.")?
{
.context("Failed to fetch request status.")?;
match response {
RequestStatusResponse::Replied(reply) => return Ok(reply.arg),
RequestStatusResponse::Rejected(response) => {
return Err(DfxError::new(AgentError::CertifiedReject(response)))
Expand Down
2 changes: 1 addition & 1 deletion src/dfx/src/commands/canister/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub async fn exec(
let request_id = request_id
.parse::<RequestId>()
.context("Failed to decode request ID.")?;
let response = agent
let (response, _cert) = agent
.request_status_signed(&request_id, canister_id, envelope)
.await
.with_context(|| format!("Failed to read canister state of {}.", canister_id))?;
Expand Down
2 changes: 1 addition & 1 deletion src/dfx/src/lib/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ pub fn create_agent(
.with_url(url)
.with_boxed_identity(identity)
.with_verify_query_signatures(!disable_query_verification)
.with_ingress_expiry(Some(timeout))
.with_ingress_expiry(timeout)
.build()?;
Ok(agent)
}

0 comments on commit 2ec6162

Please sign in to comment.