diff --git a/lib/commands.py b/lib/commands.py index e4aae1a1..856e1d60 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -435,7 +435,7 @@ class Commands: def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): """Create a transaction. """ tx_fee = satoshis(fee) - domain = [from_addr] if from_addr else None + domain = from_addr.split(',') if from_addr else None tx = self._mktx([(destination, amount)], tx_fee, change_addr, domain, nocheck, unsigned, rbf, password, locktime) return tx.as_dict() @@ -443,7 +443,7 @@ class Commands: def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): """Create a multi-output transaction. """ tx_fee = satoshis(fee) - domain = [from_addr] if from_addr else None + domain = from_addr.split(',') if from_addr else None tx = self._mktx(outputs, tx_fee, change_addr, domain, nocheck, unsigned, rbf, password, locktime) return tx.as_dict()