add init to Account & Transaction
This commit is contained in:
@@ -12,4 +12,11 @@ class Transaction {
|
||||
var receiver: String
|
||||
var amount: Int
|
||||
var type: String
|
||||
|
||||
init(sender: String, receiver: String, amount: Int, type: String) {
|
||||
self.sender = sender
|
||||
self.receiver = receiver
|
||||
self.amount = amount
|
||||
self.type = type
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user