aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/api/config_test.go')
-rw-r--r--swarm/api/config_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go
index 6b5cea915..85d056270 100644
--- a/swarm/api/config_test.go
+++ b/swarm/api/config_test.go
@@ -96,7 +96,10 @@ func TestConfigWriteRead(t *testing.T) {
}
defer os.RemoveAll(tmp)
- prvkey := crypto.ToECDSA(common.Hex2Bytes(hexprvkey))
+ prvkey, err := crypto.HexToECDSA(hexprvkey)
+ if err != nil {
+ t.Fatalf("failed to load private key: %v", err)
+ }
orig, err := NewConfig(tmp, common.Address{}, prvkey, 323)
if err != nil {
t.Fatalf("expected no error, got %v", err)