Skip to content

Commit 85702b9

Browse files
Merge pull request #40 from hashed-io/feature/pallet-records/sources-by-drawdown
Feature/pallet records/sources by drawdown
2 parents 5cc43e4 + fb8c7fa commit 85702b9

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

pallets/fund-admin-records/src/tests.rs

-22
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,6 @@ fn make_record_collection(
2525
record_collection
2626
}
2727

28-
// fn make_default_record_collection() -> RecordCollection<Test> {
29-
// make_record_collection(
30-
// make_project_id("project_id"),
31-
// make_hashed_info("hashed_info"),
32-
// TableType::Drawdown,
33-
// RecordType::Creation,
34-
// )
35-
// }
36-
37-
// fn make_array_record_collection(num: u16) -> RecordCollection<Test> {
38-
// let mut record_collection: RecordCollection<Test> = bounded_vec![];
39-
// for i in 0..num {
40-
// record_collection.try_push((
41-
// make_project_id(&format!("project_id_{}", i)),
42-
// make_hashed_info(&format!("hashed_info_{}", i)),
43-
// TableType::Drawdown,
44-
// RecordType::Creation,
45-
// )).unwrap_or_default();
46-
// }
47-
// record_collection
48-
// }
49-
5028
#[test]
5129
fn set_signer_account_works() {
5230
new_test_ext().execute_with(|| {

pallets/fund-admin-records/src/types.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub enum TableType {
2727
RecoveryDrawdown,
2828
Revenue,
2929
RecoveryRevenue,
30+
Rebalance,
31+
DrawdownSources
3032
}
3133

3234
#[derive(
@@ -39,5 +41,5 @@ pub enum RecordType {
3941
Reject,
4042
Recovery,
4143
Cancel,
42-
Confirm,
44+
Confirm
4345
}

0 commit comments

Comments
 (0)