Skip to content

Commit

Permalink
fix(publisher): fix failing integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Nov 23, 2024
1 parent c2e19c5 commit 9785d79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 0 additions & 9 deletions crates/fuel-streams-core/src/transactions/subjects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ pub struct TransactionsSubject {
pub kind: Option<TransactionKind>,
}

// impl From<&FuelCoreTransaction> for TransactionsSubject {
// fn from(value: &FuelCoreTransaction) -> Self {
// let subject = TransactionsSubject::new();
// let tx_id = value.cached_id().unwrap();
// let kind = TransactionKind::from(value.to_owned());
// subject.with_tx_id(Some(tx_id.into())).with_kind(Some(kind))
// }
// }

impl From<&Transaction> for TransactionsSubject {
fn from(transaction: &Transaction) -> Self {
let subject = TransactionsSubject::new();
Expand Down
4 changes: 3 additions & 1 deletion tests/tests/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use tokio::sync::broadcast::{self, Receiver, Sender};

struct TestFuelCore {
chain_id: ChainId,
base_asset_id: AssetId,
database: CombinedDatabase,
blocks_broadcaster: Sender<fuel_core_importer::ImporterResult>,
receipts: Option<Vec<FuelCoreReceipt>>,
Expand All @@ -31,6 +32,7 @@ impl TestFuelCore {
) -> Self {
Self {
chain_id: ChainId::default(),
base_asset_id: AssetId::zeroed(),
database: CombinedDatabase::default(),
blocks_broadcaster,
receipts: None,
Expand All @@ -54,7 +56,7 @@ impl FuelCoreLike for TestFuelCore {
async fn stop(&self) {}

fn base_asset_id(&self) -> &AssetId {
unimplemented!()
&self.base_asset_id
}
fn chain_id(&self) -> &ChainId {
&self.chain_id
Expand Down

0 comments on commit 9785d79

Please sign in to comment.