ss58Format option for Keyring (#471)

* ss58Format option  for Keyring

* Expose setSS58Format everywhere

* Remove setAddressPrefix

* 1.4.0
This commit is contained in:
Jaco Greeff
2019-09-12 13:59:03 +02:00
committed by GitHub
parent 00374effc5
commit 16d077c87d
21 changed files with 74 additions and 49 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { setAddressPrefix } from '@polkadot/util-crypto';
import { setSS58Format } from '@polkadot/util-crypto';
import testingPairs from '../testingPairs';
import createPair from '.';
@@ -61,7 +61,7 @@ describe('pair', (): void => {
'5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaQua'
);
setAddressPrefix(68);
setSS58Format(68);
expect(keyring.alice.address).toEqual(
'7sGUeMak588SPY2YMmmuKUuLz7u2WQpf74F9dCFtSLB2td9d'