Skip to content

Commit

Permalink
Merge branch 'restructuring_transaction_datatype' of github.com:zajko…
Browse files Browse the repository at this point in the history
…/casper-node into rustSDK-feat-2.0-transaction
  • Loading branch information
gRoussac committed Oct 8, 2024
2 parents 7c4705d + f7c3951 commit 1afd8ae
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use crate::{
};
#[cfg(any(feature = "testing", test))]
use crate::{testing::TestRng, transaction::Approval, TransactionConfig, TransactionV1Hash};
#[cfg(any(all(feature = "std", feature = "testing"), test))]
use alloc::collections::BTreeMap;
pub use error::TransactionV1BuilderError;
#[cfg(any(all(feature = "std", feature = "testing"), test))]
use rand::Rng;
#[cfg(any(all(feature = "std", feature = "testing"), test))]
use std::collections::BTreeMap;

/// A builder for constructing `TransactionV1` instances with various configuration options.
///
Expand Down Expand Up @@ -173,6 +173,7 @@ impl<'a> TransactionV1Builder<'a> {
_phantom_data: PhantomData,
#[cfg(any(all(feature = "std", feature = "testing"), test))]
invalid_approvals: vec![],
#[cfg(any(all(feature = "std", feature = "testing"), test))]
additional_fields: BTreeMap::new(),
}
}
Expand Down Expand Up @@ -378,6 +379,7 @@ impl<'a> TransactionV1Builder<'a> {
secret_key: Some(secret_key),
_phantom_data: PhantomData,
invalid_approvals: vec![],
#[cfg(any(all(feature = "std", feature = "testing"), test))]
additional_fields: BTreeMap::new(),
}
}
Expand Down Expand Up @@ -422,6 +424,7 @@ impl<'a> TransactionV1Builder<'a> {
secret_key: Some(secret_key),
_phantom_data: PhantomData,
invalid_approvals: vec![],
#[cfg(any(all(feature = "std", feature = "testing"), test))]
additional_fields: BTreeMap::new(),
}
}
Expand Down

0 comments on commit 1afd8ae

Please sign in to comment.