File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
pallets/proxy-financial/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1001,8 +1001,10 @@ impl<T: Config> Pallet<T> {
10011001 //Ensure drawdown exists so helper private functions doesn't need to check it
10021002 ensure ! ( DrawdownsInfo :: <T >:: contains_key( drawdown_id) , Error :: <T >:: DrawdownNotFound ) ;
10031003
1004- // Ensure transactions are not empty
1005- ensure ! ( !transactions. is_empty( ) , Error :: <T >:: EmptyTransactions ) ;
1004+ // Ensure transactions are not empty if submit is true
1005+ if submit == false {
1006+ ensure ! ( !transactions. is_empty( ) , Error :: <T >:: EmptyTransactions ) ;
1007+ }
10061008
10071009 //Todo: create custom error to replace nonevalue error
10081010 for transaction in transactions {
@@ -1039,7 +1041,7 @@ impl<T: Config> Pallet<T> {
10391041 Self :: do_calculate_drawdown_total_amount ( project_id, drawdown_id) ?;
10401042
10411043 // If submit is true, submit drawdown to be approved
1042- if submit {
1044+ if submit == true {
10431045 Self :: do_submit_drawdown ( project_id, drawdown_id) ?;
10441046 }
10451047
You can’t perform that action at this time.
0 commit comments