Skip to content

Commit f4acc9f

Browse files
committed
Wrap into Option all fields from transactions boundedvec because they depends on what CURD action the user is calling
1 parent 45cbfe3 commit f4acc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/proxy-financial/src/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ impl<T: Config> Pallet<T> {
757757
drawdown_id: [u8;32],
758758
_user: T::AccountId, //TODO: remove underscore when permissions are implemented
759759
transactions: BoundedVec<(
760-
[u8;32], // expenditure_id
761-
u64, // amount
760+
Option<[u8;32]>, // expenditure_id
761+
Option<u64>, // amount
762762
Option<Documents<T>>, //Documents
763763
CUDAction, // Action
764764
Option<[u8;32]>, // transaction_id

0 commit comments

Comments
 (0)