use default vals for new accounts
This commit is contained in:
parent
cafc961679
commit
e3826a2f45
|
@ -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() {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
func TestNilAccount(t *testing.T) {
|
||||
|
||||
acc := Account{}
|
||||
var acc Account
|
||||
|
||||
//test Copy
|
||||
accCopy := acc.Copy()
|
||||
|
|
Loading…
Reference in New Issue