Skip to content

Commit

Permalink
Merge pull request #40 from hashed-io/feature/pallet-records/sources-…
Browse files Browse the repository at this point in the history
…by-drawdown

Feature/pallet records/sources by drawdown
  • Loading branch information
sebastianmontero authored Feb 16, 2024
2 parents 5cc43e4 + fb8c7fa commit 85702b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
22 changes: 0 additions & 22 deletions pallets/fund-admin-records/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,6 @@ fn make_record_collection(
record_collection
}

// fn make_default_record_collection() -> RecordCollection<Test> {
// make_record_collection(
// make_project_id("project_id"),
// make_hashed_info("hashed_info"),
// TableType::Drawdown,
// RecordType::Creation,
// )
// }

// fn make_array_record_collection(num: u16) -> RecordCollection<Test> {
// let mut record_collection: RecordCollection<Test> = bounded_vec![];
// for i in 0..num {
// record_collection.try_push((
// make_project_id(&format!("project_id_{}", i)),
// make_hashed_info(&format!("hashed_info_{}", i)),
// TableType::Drawdown,
// RecordType::Creation,
// )).unwrap_or_default();
// }
// record_collection
// }

#[test]
fn set_signer_account_works() {
new_test_ext().execute_with(|| {
Expand Down
4 changes: 3 additions & 1 deletion pallets/fund-admin-records/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub enum TableType {
RecoveryDrawdown,
Revenue,
RecoveryRevenue,
Rebalance,
DrawdownSources
}

#[derive(
Expand All @@ -39,5 +41,5 @@ pub enum RecordType {
Reject,
Recovery,
Cancel,
Confirm,
Confirm
}

0 comments on commit 85702b9

Please sign in to comment.