@rabby-wallet/eth-hd-keyring 4.0.0-alpha → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +3 -3
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -84,7 +84,7 @@ class HdKeyring extends SimpleKeyring {
84
84
 
85
85
  private initPublicKey() {
86
86
  this.root = this.hdWallet!.derive(this.hdPath);
87
- this.publicKey = bytesToHex(this.root.publicKey);
87
+ this.publicKey = bytesToHex(this.root.publicKey!);
88
88
  }
89
89
 
90
90
  getPublicKey() {
@@ -227,8 +227,8 @@ class HdKeyring extends SimpleKeyring {
227
227
  if (!this._index2wallet[i]) {
228
228
  const child = this.root!.deriveChild(i);
229
229
  const wallet = {
230
- publicKey: privateToPublic(child.privateKey),
231
- privateKey: child.privateKey,
230
+ publicKey: privateToPublic(child.privateKey!),
231
+ privateKey: child.privateKey!,
232
232
  };
233
233
  const address = sigUtil.normalize(
234
234
  this._addressfromPublicKey(wallet.publicKey),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/eth-hd-keyring",
3
- "version": "4.0.0-alpha",
3
+ "version": "4.0.0",
4
4
  "description": "A simple standard interface for a seed phrase generated set of Ethereum accounts.",
5
5
  "keywords": [
6
6
  "ethereum",