Fix object formatting

fees used as amount because of missing parameter in text variable.
This commit is contained in:
ph4z
2020-01-24 20:22:32 +01:00
committed by Jacob Plaster
parent 0e313418bc
commit e0d58c5030

View File

@@ -45,7 +45,7 @@ class Withdraw:
return Withdraw(w_id, method, wallet, amount)
def __str__(self):
''' Allow us to print the Transfer object in a pretty format '''
text = "Withdraw <id={} from {} ({}) fee={}>"
''' Allow us to print the Withdraw object in a pretty format '''
text = "Withdraw <id={} from {} ({}) amount={} fee={}>"
return text.format(self.id, self.wallet, self.method, self.amount,
self.fee)