Is_valid assert wasn't displaying anything.
Fixed it with a message.
This commit is contained in:
parent
c5aa69a1f0
commit
c49a97ef14
|
@ -1333,7 +1333,7 @@ class Wallet:
|
||||||
|
|
||||||
def make_unsigned_transaction(self, outputs, fee=None, change_addr=None, domain=None ):
|
def make_unsigned_transaction(self, outputs, fee=None, change_addr=None, domain=None ):
|
||||||
for address, x in outputs:
|
for address, x in outputs:
|
||||||
assert is_valid(address)
|
assert is_valid(address), "Address " + address + " is invalid!"
|
||||||
amount = sum( map(lambda x:x[1], outputs) )
|
amount = sum( map(lambda x:x[1], outputs) )
|
||||||
inputs, total, fee = self.choose_tx_inputs( amount, fee, domain )
|
inputs, total, fee = self.choose_tx_inputs( amount, fee, domain )
|
||||||
if not inputs:
|
if not inputs:
|
||||||
|
|
Loading…
Reference in New Issue