diff options
Diffstat (limited to 'accounts/accounts_test.go')
-rw-r--r-- | accounts/accounts_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 2e5f2b44a..51ca6c256 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -95,7 +95,7 @@ func TestSignWithPassphrase(t *testing.T) { t.Fatal("expected account to be locked") } - _, err = am.SignWithPassphrase(acc.Address, pass, testSigData) + _, err = am.SignWithPassphrase(acc, pass, testSigData) if err != nil { t.Fatal(err) } @@ -104,7 +104,7 @@ func TestSignWithPassphrase(t *testing.T) { t.Fatal("expected account to be locked") } - if _, err = am.SignWithPassphrase(acc.Address, "invalid passwd", testSigData); err == nil { + if _, err = am.SignWithPassphrase(acc, "invalid passwd", testSigData); err == nil { t.Fatal("expected SignHash to fail with invalid password") } } |