Skip to content

Commit 2ec6162

Browse files
authored
chore: update ic-agent to 0.39 (#4025)
1 parent e73ffdb commit 2ec6162

File tree

6 files changed

+32
-27
lines changed

6 files changed

+32
-27
lines changed

Cargo.lock

Lines changed: 22 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ license = "Apache-2.0"
2222
candid = "0.10.4"
2323
candid_parser = "0.1.4"
2424
dfx-core = { path = "src/dfx-core", version = "0.1.0" }
25-
ic-agent = "0.38"
25+
ic-agent = "0.39"
2626
ic-asset = { path = "src/canisters/frontend/ic-asset", version = "0.21.0" }
2727
ic-cdk = "0.13.1"
28-
ic-identity-hsm = "0.38"
29-
ic-utils = "0.38"
28+
ic-identity-hsm = "0.39"
29+
ic-utils = "0.39"
3030

3131
aes-gcm = "0.10.3"
3232
anyhow = "1.0.56"

src/dfx/src/commands/canister/call.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ To figure out the id of your wallet, run 'dfx identity get-wallet (--network ic)
358358
.with_arg(arg_value)
359359
.call()
360360
.await
361-
.context("Failed update call.")?,
361+
.context("Failed update call.")?
362+
.map(|(res, _)| res),
362363
CallSender::Wallet(wallet_id) => {
363364
let wallet = build_wallet_canister(*wallet_id, agent).await?;
364365
let mut args = Argument::default();

src/dfx/src/commands/canister/request_status.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ pub async fn exec(env: &dyn Environment, opts: RequestStatusOpts) -> DfxResult {
5050
let blob = async {
5151
let mut request_accepted = false;
5252
loop {
53-
match agent
53+
let (response, _cert) = agent
5454
.request_status_raw(&request_id, canister_id)
5555
.await
56-
.context("Failed to fetch request status.")?
57-
{
56+
.context("Failed to fetch request status.")?;
57+
match response {
5858
RequestStatusResponse::Replied(reply) => return Ok(reply.arg),
5959
RequestStatusResponse::Rejected(response) => {
6060
return Err(DfxError::new(AgentError::CertifiedReject(response)))

src/dfx/src/commands/canister/send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub async fn exec(
5757
let request_id = request_id
5858
.parse::<RequestId>()
5959
.context("Failed to decode request ID.")?;
60-
let response = agent
60+
let (response, _cert) = agent
6161
.request_status_signed(&request_id, canister_id, envelope)
6262
.await
6363
.with_context(|| format!("Failed to read canister state of {}.", canister_id))?;

src/dfx/src/lib/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub fn create_agent(
418418
.with_url(url)
419419
.with_boxed_identity(identity)
420420
.with_verify_query_signatures(!disable_query_verification)
421-
.with_ingress_expiry(Some(timeout))
421+
.with_ingress_expiry(timeout)
422422
.build()?;
423423
Ok(agent)
424424
}

0 commit comments

Comments
 (0)