Skip to content

Commit

Permalink
chore: fixed test compilation (#165)
Browse files Browse the repository at this point in the history
* chore: fixed test compilation

* doc fix
  • Loading branch information
akorchyn authored Dec 13, 2024
1 parent 1f08434 commit d77eb67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ log = "0.4.17"
borsh = "1.3.0"
serde = "1.0.145"
reqwest = { version = "0.12", features = ["json"], default-features = false }
thiserror = "1.0.37"
thiserror = "2.0"
serde_json = "1.0.85"
lazy_static = "1.4.0"

near-crypto = ">0.22,<0.29"
near-primitives = ">0.22,<0.29"
near-primitives = { version = ">0.22,<0.29", features = ["test_utils"] }
near-chain-configs = ">0.22,<0.29"
near-jsonrpc-primitives = ">0.22,<0.29"

Expand Down
8 changes: 4 additions & 4 deletions src/methods/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! ```
//! use near_jsonrpc_client::{methods, JsonRpcClient};
//! use near_jsonrpc_primitives::types::chunks;
//! use near_primitives::types::BlockId;
//! use near_primitives::types::{BlockId, ShardId};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
Expand All @@ -22,7 +22,7 @@
//! let request = methods::chunk::RpcChunkRequest {
//! chunk_reference: chunks::ChunkReference::BlockShardId {
//! block_id: BlockId::Hash("6atGq4TUTZerVHU9qWoYfzXNBg3K4C4cca15TE6KfuBr".parse()?),
//! shard_id: 0,
//! shard_id: ShardId::from(0),
//! }
//! };
//!
Expand All @@ -41,7 +41,7 @@
//! ```
//! use near_jsonrpc_client::{methods, JsonRpcClient};
//! use near_jsonrpc_primitives::types::chunks;
//! use near_primitives::types::BlockId;
//! use near_primitives::types::{BlockId, ShardId};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand All @@ -50,7 +50,7 @@
//! let request = methods::chunk::RpcChunkRequest {
//! chunk_reference: chunks::ChunkReference::BlockShardId {
//! block_id: BlockId::Height(61512623),
//! shard_id: 3,
//! shard_id: ShardId::from(3),
//! }
//! };
//!
Expand Down

0 comments on commit d77eb67

Please sign in to comment.