use default vals for new accounts

This commit is contained in:
Ethan Buchman 2017-02-23 20:50:20 -05:00
parent cafc961679
commit e3826a2f45
2 changed files with 3 additions and 4 deletions

View File

@ -21,9 +21,8 @@ func TestState(t *testing.T) {
//Account and address for tests
dumAddr := []byte("dummyAddress")
acc := &types.Account{
Sequence: 1,
}
acc := new(types.Account)
acc.Sequence = 1
//reset the store/state/cache
reset := func() {

View File

@ -8,7 +8,7 @@ import (
func TestNilAccount(t *testing.T) {
acc := Account{}
var acc Account
//test Copy
accCopy := acc.Copy()