mirror of
https://github.com/embarklabs/ethereumjs-wallet.git
synced 2025-02-05 23:33:31 +00:00
Fix getPublicKeyString() and getPrivateKeyString()
This commit is contained in:
parent
d7e60df91d
commit
25ccfac7b4
4
index.js
4
index.js
@ -22,7 +22,7 @@ Wallet.prototype.getPrivateKey = function () {
|
||||
}
|
||||
|
||||
Wallet.prototype.getPrivateKeyString = function () {
|
||||
return this.getPrivateKey.toString('hex')
|
||||
return '0x' + this.getPrivateKey().toString('hex')
|
||||
}
|
||||
|
||||
Wallet.prototype.getPublicKey = function () {
|
||||
@ -30,7 +30,7 @@ Wallet.prototype.getPublicKey = function () {
|
||||
}
|
||||
|
||||
Wallet.prototype.getPublicKeyString = function () {
|
||||
return this.getPublicKey.toString('hex')
|
||||
return '0x' + this.getPublicKey().toString('hex')
|
||||
}
|
||||
|
||||
Wallet.prototype.getAddress = function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user