all: remove redundant conversions and import names (#21903)
This commit is contained in:
@ -230,7 +230,7 @@ func DecryptKey(keyjson []byte, auth string) (*Key, error) {
|
||||
key := crypto.ToECDSAUnsafe(keyBytes)
|
||||
|
||||
return &Key{
|
||||
Id: uuid.UUID(keyId),
|
||||
Id: keyId,
|
||||
Address: crypto.PubkeyToAddress(key.PublicKey),
|
||||
PrivateKey: key,
|
||||
}, nil
|
||||
|
Reference in New Issue
Block a user