Skip to content

Commit a0da5a7

Browse files
committed
chore: update ObjectStoreClient
1 parent 5267c84 commit a0da5a7

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ strip = true
1515
opt-level = 's'
1616

1717
[workspace.package]
18-
version = "0.6.7"
18+
version = "0.6.8"
1919
edition = "2021"
2020
repository = "https://github.com/ldclabs/ic-cose"
2121
keywords = ["config", "cbor", "canister", "icp", "encryption"]

src/ic_object_store/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ ic_cose_types = { path = "../ic_cose_types", version = "0.6" }
2525
[dev-dependencies]
2626
tokio = { workspace = true }
2727
ed25519-consensus = { workspace = true }
28+
const-hex = { workspace = true }

src/ic_object_store/src/agent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::sync::Arc;
55
/// Creates and configures an IC agent with the given host URL and identity.
66
///
77
/// # Arguments
8-
/// * `host` - The IC host URL (e.g., "https://ic0.app" or "http://localhost:8000")
8+
/// * `host` - The IC host URL (e.g., "https://ic0.app" or "http://localhost:4943")
99
/// * `identity` - Arc-wrapped identity for authentication
1010
///
1111
/// # Returns
@@ -18,7 +18,7 @@ pub async fn build_agent(host: &str, identity: Arc<dyn Identity>) -> Result<Agen
1818
let agent = Agent::builder()
1919
.with_url(host)
2020
.with_arc_identity(identity)
21-
.with_verify_query_signatures(true)
21+
.with_verify_query_signatures(false)
2222
.build()
2323
.map_err(format_error)?;
2424
if host.starts_with("http://") {

src/ic_object_store/src/client.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ impl ObjectStoreClient {
665665
pub fn new(client: Arc<Client>) -> ObjectStoreClient {
666666
ObjectStoreClient { client }
667667
}
668+
669+
pub async fn get_state(&self) -> Result<StateInfo, String> {
670+
self.client.get_state().await
671+
}
668672
}
669673

670674
impl std::fmt::Display for ObjectStoreClient {

0 commit comments

Comments
 (0)