* Use ss58 format on keyring for the keyring only * Cleanup args * Cleanup failures * Remove deprecated addressPrefix * Update CHANGELOG
16 lines
483 B
TypeScript
16 lines
483 B
TypeScript
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import { Prefix } from './types';
|
|
|
|
import defaults from './defaults';
|
|
|
|
/**
|
|
* @description Sets the global SS58 format to use for address encoding
|
|
* @deprecated Use keyring.setSS58Format
|
|
*/
|
|
export default function setSS58Format (prefix: Prefix): void {
|
|
defaults.prefix = prefix;
|
|
}
|