Skip to content

Commit

Permalink
Fixes compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Feb 14, 2025
1 parent 02bbe55 commit 087d26e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
15 changes: 10 additions & 5 deletions chain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ async fn crawling_fn(
let native_token = namada_service::get_native_token(&client)
.await
.into_rpc_error()?;
let native_token_address: namada_sdk::address::Address =
native_token.clone().into();

let (block, tm_block_response, epoch) =
get_block(block_height, &client, checksums, native_token).await?;
get_block(block_height, &client, checksums, &native_token_address)
.await?;

tracing::debug!(
block = block_height,
Expand Down Expand Up @@ -410,11 +413,13 @@ async fn try_initial_query(
.await
.into_rpc_error()?;

let native_token = namada_service::get_native_token(client)
.await
.into_rpc_error()?;
let native_token: namada_sdk::address::Address =
namada_service::get_native_token(client)
.await
.into_rpc_error()?
.into();
let (block, tm_block_response, epoch) =
get_block(block_height, client, checksums.clone(), native_token)
get_block(block_height, client, checksums.clone(), &native_token)
.await?;

let tokens = query_tokens(client).await.into_rpc_error()?;
Expand Down
16 changes: 0 additions & 16 deletions orm/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,6 @@ pub mod sql_types {
#[diesel(postgres_type(name = "ibc_status"))]
pub struct IbcStatus;

#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "payment_kind"))]
pub struct PaymentKind;

#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "payment_recurrence"))]
pub struct PaymentRecurrence;

#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
Expand Down
10 changes: 6 additions & 4 deletions transactions/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,19 @@ async fn crawling_fn(
"Got block proposer address"
);

let native_token = namada_service::get_native_token(&client)
.await
.into_rpc_error();
let native_token: namada_sdk::address::Address =
namada_service::get_native_token(&client)
.await
.into_rpc_error()?
.into();
let block = Block::from(
&tm_block_response,
&block_results,
&proposer_address_namada,
checksums,
1_u32, // placeholder, we dont need the epoch here
block_height,
native_token,
&native_token,
);

let inner_txs = block.inner_txs();
Expand Down

0 comments on commit 087d26e

Please sign in to comment.