Skip to content

Commit

Permalink
Remove Block type alias (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmauro authored May 7, 2023
1 parent 6ea576b commit 2295994
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/algod/v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use algonaut_transaction::SignedTransaction;
/// Error class wrapping errors from algonaut_algod
pub(crate) mod error;

pub type Block = GetBlock200Response;

#[derive(Debug, Clone)]
pub struct Algod {
pub(crate) configuration: Configuration,
Expand Down Expand Up @@ -134,7 +132,7 @@ impl Algod {
}

/// Get the block for the given round.
pub async fn block(&self, round: u64) -> Result<Block, Error> {
pub async fn block(&self, round: u64) -> Result<GetBlock200Response, Error> {
Ok(
algonaut_algod::apis::public_api::get_block(&self.configuration, round, None)
.await
Expand Down

0 comments on commit 2295994

Please sign in to comment.