-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# 0.116.1 (2024-05-28) | ||
|
||
### CKB Node & Light Client | ||
|
||
- [[email protected]](https://github.com/nervosnetwork/ckb/releases/tag/v0.116.1) was released on May. 11st, 2024. This version of CKB node is now bundled and preconfigured in Neuron. | ||
- [CKB Light [email protected]](https://github.com/nervosnetwork/ckb-light-client/releases/tag/v0.3.7) was released on Apr. 13th, 2024. This version of CKB Light Client is now bundled and preconfigured in Neuron | ||
|
||
### Assumed valid target | ||
|
||
Block before `0x6dd077b407d019a0bce0cbad8c34e69a524ae4b2599b9feda2c7491f3559d32c`(at height `13,007,704`) will be skipped in validation.(https://github.com/nervosnetwork/neuron/pull/3157) | ||
|
||
--- | ||
|
||
## Bug fixes | ||
|
||
- 3173: Fix importing an account from a hardware wallet.(@yanguoyu) | ||
|
||
**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.116.0...v0.116.1 | ||
|
||
# 0.116.0 (2024-05-24) | ||
|
||
### CKB Node & Light Client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"version": "0.116.0", | ||
"version": "0.116.1", | ||
"npmClient": "yarn", | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/neuron-wallet/tests/services/hardware/ledger.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import Ledger from '../../../src/services/hardware/ledger' | ||
|
||
const getWalletExtendedPublicKeyMock = jest.fn() | ||
|
||
jest.mock('hw-app-ckb', () => { | ||
return function () { | ||
return { | ||
getWalletExtendedPublicKey: getWalletExtendedPublicKeyMock, | ||
} | ||
} | ||
}) | ||
|
||
jest.mock('@ledgerhq/hw-transport-node-hid', () => ({ | ||
open: jest.fn(), | ||
})) | ||
|
||
const pk = | ||
'04d061e9c5891f579fd548cfd22ff29f5c642714cc7e7a9215f0071ef5a5723f691757b28e31be71f09f24673eed52348e58d53bcfd26f4d96ec6bf1489eab429d' | ||
const zipPk = '03d061e9c5891f579fd548cfd22ff29f5c642714cc7e7a9215f0071ef5a5723f69' | ||
|
||
describe('test for ledger', () => { | ||
describe('test getExtendedPublicKey', () => { | ||
it('if the return pk is unzip', async () => { | ||
getWalletExtendedPublicKeyMock.mockResolvedValueOnce({ public_key: pk, chain_code: '0x' }) | ||
const ledger = new Ledger({} as any) | ||
await ledger.connect() | ||
const res = await ledger.getExtendedPublicKey() | ||
expect(res.publicKey).toBe(zipPk) | ||
}) | ||
|
||
it('if the return pk is zip', async () => { | ||
getWalletExtendedPublicKeyMock.mockResolvedValueOnce({ public_key: zipPk, chain_code: '0x' }) | ||
const ledger = new Ledger({} as any) | ||
await ledger.connect() | ||
const res = await ledger.getExtendedPublicKey() | ||
expect(res.publicKey).toBe(zipPk) | ||
}) | ||
}) | ||
}) |
37b0fbb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 9270805960
37b0fbb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 9327993983