Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stojanov-igor committed Jan 28, 2025
1 parent e32ca91 commit 10042c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ pub mod smart_contract;
pub mod transaction;
pub mod utils;

pub use block::*;
pub use block::{Block, BlockHeader}; // Only re-export specific items
pub use blockchain::*;
pub use config::*;
pub use smart_contract::*;
pub use transaction::*;
pub use transaction::{Transaction, Extrinsic as TxExtrinsic, Ticket as TxTicket}; // Resolve naming conflicts
pub use utils::*;
4 changes: 2 additions & 2 deletions jam/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#[cfg(test)]
mod tests {
use super::*;
// use super::*;
use jam::{
block::{Block, BlockHeader, Extrinsic},
blockchain::Blockchain,
Expand Down Expand Up @@ -129,7 +129,7 @@ mod tests {
#[test]
fn test_blockchain_validate_block() {
let config = Config::default();
let mut blockchain = Blockchain::new(
let blockchain = Blockchain::new(
vec!["0xvalidator1".to_string()],
config.epoch_duration,
config.core_count,
Expand Down

0 comments on commit 10042c0

Please sign in to comment.