Skip to content

Commit 44910ba

Browse files
authored
fix: enable vendorfield for multipayment (#103)
1 parent bbe262c commit 44910ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crypto/transactions/builder/multi_payment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ class MultiPayment(BaseTransactionBuilder):
66

77
transaction_type = TRANSACTION_MULTI_PAYMENT
88

9-
def __init__(self, fee=None):
9+
def __init__(self, vendorField=None, fee=None):
1010
"""Create a multi payment transaction
1111
1212
Args:
13+
vendorField (str): value for the vendor field aka smartbridge
1314
fee (int, optional): fee used for the transaction (default is already set)
1415
"""
1516
super().__init__()
@@ -18,6 +19,8 @@ def __init__(self, fee=None):
1819

1920
self.transaction.asset['payments'] = []
2021

22+
self.transaction.vendorField = vendorField.encode() if vendorField else None
23+
2124
if fee:
2225
self.transaction.fee = fee
2326

0 commit comments

Comments
 (0)