diff --git a/state/state_test.go b/state/state_test.go index 6eae18de91..8c74162195 100644 --- a/state/state_test.go +++ b/state/state_test.go @@ -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() { diff --git a/types/account_test.go b/types/account_test.go index 77dfba9d8b..5a9118f1df 100644 --- a/types/account_test.go +++ b/types/account_test.go @@ -8,7 +8,7 @@ import ( func TestNilAccount(t *testing.T) { - acc := Account{} + var acc Account //test Copy accCopy := acc.Copy()