Skip to content

Commit

Permalink
fix(hyper-transport): Add api/v2 prefix to read_state requests for …
Browse files Browse the repository at this point in the history
…hyper transport (#575)
  • Loading branch information
DSharifi authored Jul 25, 2024
1 parent 9190e28 commit 07e7c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* Bug fix: Add `api/v2` prefix to read_state requests for hyper transport

## [0.37.0] - 2024-07-23

* Removed the Bitcoin query methods from `ManagementCanister`. Users should use `BitcoinCanister` for that.
Expand Down
2 changes: 1 addition & 1 deletion ic-agent/src/agent/http_transport/hyper_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ where
envelope: Vec<u8>,
) -> AgentFuture<Vec<u8>> {
Box::pin(async move {
let endpoint = format!("canister/{effective_canister_id}/read_state",);
let endpoint = format!("api/v2/canister/{effective_canister_id}/read_state",);
self.request(Method::POST, &endpoint, Some(envelope))
.await
.map(|(_, body)| body)
Expand Down

0 comments on commit 07e7c81

Please sign in to comment.