wallet: fix TestNewAccount

It duplicated TestNewFromWif.
This commit is contained in:
Roman Khimov 2020-01-09 18:33:26 +03:00
parent 9bb68d7025
commit e96b4bc82e

View file

@ -10,16 +10,9 @@ import (
)
func TestNewAccount(t *testing.T) {
for _, testCase := range keytestcases.Arr {
acc, err := NewAccountFromWIF(testCase.Wif)
if testCase.Invalid {
assert.Error(t, err)
continue
}
assert.NoError(t, err)
compareFields(t, testCase, acc)
}
acc, err := NewAccount()
require.NoError(t, err)
require.NotNil(t, acc)
}
func TestDecryptAccount(t *testing.T) {