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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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,