account type in OpenAccount RPC was ignored (#61)
This commit is contained in:
parent
1e8e50f4f8
commit
22ce2f04fd
|
|
@ -38,6 +38,7 @@ func (a *accounts) openAccount(customer string, accountType Account_Type, initia
|
|||
a.AccountNumbersByCustomer[customer] = accountNums
|
||||
var acct account
|
||||
acct.AccountNumber = num
|
||||
acct.Type = accountType
|
||||
acct.BalanceCents = initialBalanceCents
|
||||
acct.Transactions = append(acct.Transactions, &Transaction{
|
||||
AccountNumber: num,
|
||||
|
|
|
|||
Loading…
Reference in New Issue