Skip to content

Commit

Permalink
fix: transaction_by_hash response
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquin Hoyos authored and Joaquin Hoyos committed Dec 19, 2023
1 parent a4c1ddb commit 058e5dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/endpoints/transactions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{request::send_request, url::Url, *};
use blockfrost_openapi::models::{
address_transactions_content_inner::AddressTransactionsContentInner, tx_content::TxContent,
tx_content_delegations_inner::TxContentDelegationsInner,
tx_content_metadata_cbor_inner::TxContentMetadataCborInner,
tx_content_metadata_inner::TxContentMetadataInner, tx_content_mirs_inner::TxContentMirsInner,
Expand Down Expand Up @@ -42,9 +41,7 @@ impl BlockfrostAPI {
json_from(&text).map_err(|reason| json_error(url, text, reason))
}

pub async fn transaction_by_hash(
&self, hash: &str,
) -> BlockfrostResult<AddressTransactionsContentInner> {
pub async fn transaction_by_hash(&self, hash: &str) -> BlockfrostResult<TxContent> {

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find type `TxContent` in this scope

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Lints

cannot find type `TxContent` in this scope

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Unit Tests

cannot find type `TxContent` in this scope

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Lints

cannot find type `TxContent` in this scope

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find type `TxContent` in this scope

Check failure on line 44 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Unit Tests

cannot find type `TxContent` in this scope
self.call_endpoint(format!("/txs/{}", hash).as_str()).await

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Check

type annotations needed

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Lints

type annotations needed

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Unit Tests

type annotations needed

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Lints

type annotations needed

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Check

type annotations needed

Check failure on line 45 in src/api/endpoints/transactions.rs

View workflow job for this annotation

GitHub Actions / Unit Tests

type annotations needed
}

Expand Down

0 comments on commit 058e5dc

Please sign in to comment.