Skip to content

Commit

Permalink
fix model types for tree transaction after fixes to backfiller
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Dec 16, 2023
1 parent 50fd51d commit 6d846cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nft_ingester/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ pub enum IngesterError {
TryFromInt(#[from] std::num::TryFromIntError),
#[error("Chrono FixedOffset Error")]
ChronoFixedOffset,
#[error("parse public")]
ParsePublic(#[from] solana_sdk::pubkey::ParsePubkeyError),
#[error("Pubkey parse")]
ParsePubkey,
}

impl From<reqwest::Error> for IngesterError {
Expand Down
2 changes: 1 addition & 1 deletion nft_ingester/src/program_transformers/bubblegum/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ where

tree_transaction.save(txn).await?;
} else {
let tree = Pubkey::try_from(txn_id)?;
let tree = Pubkey::try_from(tree_id).map_err(|_| IngesterError::ParsePubkey)?;

let tree_transaction = tree_transactions::ActiveModel {
signature: Set(txn_id.to_string()),
Expand Down

0 comments on commit 6d846cf

Please sign in to comment.