Add eth uri keyring test (#1291)

* added gerald test address

* add test for addUri for eth

* lint
This commit is contained in:
Antoine Estienne
2021-12-07 18:10:44 +02:00
committed by GitHub
parent dce16d59e6
commit 285e595930
+8
View File
@@ -369,6 +369,14 @@ describe('keypair', (): void => {
).toEqual(ETH_ADDRESS_ONE);
});
it('creates with dev phrase with derivation path specified - addFromUri with type', (): void => {
const keyringUntyped = new Keyring();
expect(
keyringUntyped.addFromUri(PHRASE, {}, 'ethereum').address
).toEqual(ETH_ADDRESS_ONE);
});
it('encodes a pair toJSON (and decodes)', (): void => {
const pair = keyring.createFromUri(PHRASE);
const json = pair.toJson('password');