Skip to content

Commit

Permalink
Add fix for quality check
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Singh <[email protected]>
  • Loading branch information
saurabh-router committed Oct 4, 2024
1 parent b2aacde commit 189fa00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/types/keypair/private_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ func Test_NewPrivateKeyFromHex(t *testing.T) {
assert.Error(t, err)
assert.Contains(t, err.Error(), "failed to create private key")
})
}
}
2 changes: 1 addition & 1 deletion types/keypair/private_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ func NewPrivateKeyFromHex(key string, algorithm keyAlgorithm) (PrivateKey, error
pub: publicKey,
priv: priv,
}, nil
}
}
2 changes: 1 addition & 1 deletion types/keypair/secp256k1/hex_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ func NewPrivateKeyFromHex(key string) (PrivateKey, error) {
if err != nil {
return PrivateKey{}, fmt.Errorf("failed to decode hex: %v", err)
}

return NewPrivateKeyFromBytes(b)
}

0 comments on commit 189fa00

Please sign in to comment.