Skip to content

Commit c73a44d

Browse files
committed
Uncomment tests
1 parent 296c97e commit c73a44d

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/hdkey.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ export default class EthereumHDKey {
2828
if (!this._hdkey.privateExtendedKey) {
2929
throw new Error('This is a public key only wallet')
3030
}
31-
// return Buffer.from(this._hdkey.privateExtendedKey, 'hex')
3231
return this._hdkey.privateExtendedKey
3332
}
3433

3534
/**
3635
* Return a BIP32 extended public key (xpub)
3736
*/
3837
public publicExtendedKey(): string {
39-
// return Buffer.from(this._hdkey.publicExtendedKey, 'hex')
4038
return this._hdkey.publicExtendedKey
4139
}
4240

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,6 @@ export default class Wallet {
608608
v3Params.iv,
609609
v3Params.cipher
610610
)
611-
// if (!cipher) {
612-
// throw new Error('Unsupported cipher')
613-
// }
614-
615-
// const ciphertext = runCipherBuffer(cipher, this.privKey)
616611
const mac = keccak256(
617612
Buffer.concat([Buffer.from(derivedKey.slice(16, 32)), Buffer.from(ciphertext)])
618613
)

test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ describe('.fromEthSale()', function () {
763763
})
764764
})
765765

766-
describe.only('.fromEtherWallet()', function () {
766+
describe('.fromEtherWallet()', function () {
767767
// it('should work with unencrypted input', function () {
768768
// const etherWalletUnencrypted = '{"address":"0x9d6abd11d36cc20d4836c25967f1d9efe6b1a27c","encrypted":true,"locked":false,"hash":"b7a6621e8b125a17234d3e5c35522696a84134d98d07eab2479d020a8613c4bd","private":"a2c6222146ca2269086351fda9f8d2dfc8a50331e8a05f0f400c13653a521862","public":"2ed129b50b1a4dbbc53346bf711df6893265ad0c700fd11431b0bc3a66bd383a87b10ad835804a6cbe092e0375a0cc3524acf06b1ec7bb978bf25d2d6c35d120"}'
769769
// const wallet = Thirdparty.fromEtherWallet(etherWalletUnencrypted)

0 commit comments

Comments
 (0)