Skip to content

Commit 1a5a01a

Browse files
authored
Merge pull request #78 from RadCod3/fix/76-rules-not-fired
Set apply_rules to true when creating transactions
2 parents a88adfe + 0885d1a commit 1a5a01a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lampyrid/services/transactions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def create_withdrawal(self, req: CreateWithdrawalRequest) -> Transaction:
6868
)
6969
trx_store = TransactionStore(
7070
transactions=[trx],
71-
apply_rules=False,
71+
apply_rules=True,
7272
fire_webhooks=True,
7373
group_title=None,
7474
error_if_duplicate_hash=False,
@@ -97,7 +97,7 @@ async def create_deposit(self, req: CreateDepositRequest) -> Transaction:
9797
)
9898
trx_store = TransactionStore(
9999
transactions=[trx],
100-
apply_rules=False,
100+
apply_rules=True,
101101
fire_webhooks=True,
102102
group_title=None,
103103
error_if_duplicate_hash=False,
@@ -125,7 +125,7 @@ async def create_transfer(self, req: CreateTransferRequest) -> Transaction:
125125
)
126126
trx_store = TransactionStore(
127127
transactions=[trx],
128-
apply_rules=False,
128+
apply_rules=True,
129129
fire_webhooks=True,
130130
group_title=None,
131131
error_if_duplicate_hash=False,
@@ -168,7 +168,7 @@ async def _create_bulk_atomic(self, transactions: List[Transaction]) -> BulkCrea
168168
trx_split = transaction.to_transaction_split_store()
169169
trx_store = TransactionStore(
170170
transactions=[trx_split],
171-
apply_rules=False,
171+
apply_rules=True,
172172
fire_webhooks=True,
173173
group_title=None,
174174
error_if_duplicate_hash=False,
@@ -213,7 +213,7 @@ async def _create_bulk_non_atomic(self, transactions: List[Transaction]) -> Bulk
213213
trx_split = transaction.to_transaction_split_store()
214214
trx_store = TransactionStore(
215215
transactions=[trx_split],
216-
apply_rules=False,
216+
apply_rules=True,
217217
fire_webhooks=True,
218218
group_title=None,
219219
error_if_duplicate_hash=False,
@@ -376,7 +376,7 @@ async def update_transaction(self, req: UpdateTransactionRequest) -> Transaction
376376
trx_split_update = TransactionSplitUpdate(**update_kwargs)
377377

378378
transaction_update = TransactionUpdate(
379-
apply_rules=False, fire_webhooks=True, group_title=None, transactions=[trx_split_update]
379+
apply_rules=True, fire_webhooks=True, group_title=None, transactions=[trx_split_update]
380380
)
381381

382382
transaction_single = await self._client.update_transaction(

0 commit comments

Comments
 (0)