aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/key.go')
-rw-r--r--crypto/key.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/key.go b/crypto/key.go
index 0c5ce4254..0b76c43ff 100644
--- a/crypto/key.go
+++ b/crypto/key.go
@@ -124,7 +124,7 @@ func NewKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key {
id := uuid.NewRandom()
key := &Key{
Id: id,
- Address: common.BytesToAddress(PubkeyToAddress(privateKeyECDSA.PublicKey)),
+ Address: PubkeyToAddress(privateKeyECDSA.PublicKey),
PrivateKey: privateKeyECDSA,
}
return key