account type in OpenAccount RPC was ignored (#61)

This commit is contained in:
Joshua Humphries
2018-11-01 13:52:58 -04:00
committed by GitHub
parent 1e8e50f4f8
commit 22ce2f04fd

View File

@@ -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,