Skip to content

Commit 67597b3

Browse files
committed
Update flow for do_create_project
1 parent f9273c6 commit 67597b3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pallets/proxy-financial/src/functions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<T: Config> Pallet<T> {
100100
description: FieldDescription,
101101
image: CID,
102102
address: FieldName,
103-
project_type: ProjectType,
103+
creation_date: u64,
104104
completion_date: u64,
105105
expenditures: BoundedVec<(
106106
FieldName,
@@ -138,8 +138,8 @@ impl<T: Config> Pallet<T> {
138138
image,
139139
address,
140140
status: ProjectStatus::default(),
141-
project_type,
142-
creation_date: timestamp,
141+
registration_date: timestamp,
142+
creation_date,
143143
completion_date,
144144
updated_date: timestamp,
145145
};

pallets/proxy-financial/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ pub mod pallet {
480480
description: FieldDescription,
481481
image: CID,
482482
address: FieldName,
483+
creation_date: u64,
483484
completion_date: u64,
484485
expenditures: BoundedVec<(
485486
FieldName,
@@ -495,7 +496,7 @@ pub mod pallet {
495496
) -> DispatchResult {
496497
let who = ensure_signed(origin)?; // origin need to be an admin
497498

498-
Self::do_create_project(who, title, description, image, address, project_type, completion_date, expenditures, users)
499+
Self::do_create_project(who, title, description, image, address, creation_date, completion_date, expenditures, users)
499500
}
500501

501502
#[transactional]

0 commit comments

Comments
 (0)