Skip to content

Commit 707adeb

Browse files
cip-82: add DevelopmentFundCoupon filter to UserWalletStore
Signed-off-by: Jose Velasco <jose.velasco@intellecteu.com>
1 parent 299547d commit 707adeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/wallet/src/main/scala/org/lfdecentralizedtrust/splice/wallet/store/UserWalletStore.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,10 @@ object UserWalletStore {
708708
} { contract =>
709709
UserWalletAcsStoreRowData(contract)
710710
},
711+
// Development fund coupons
712+
mkFilter(amuletCodegen.DevelopmentFundCoupon.COMPANION)(co =>
713+
co.payload.dso == dso && (co.payload.fundManager == endUser || co.payload.beneficiary == endUser)
714+
)(UserWalletAcsStoreRowData(_)),
711715
),
712716
Map(
713717
mkFilterInterface(allocationrequestv1.AllocationRequest.INTERFACE)(co =>

0 commit comments

Comments
 (0)