mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 05:38:03 +00:00
12 lines
471 B
JavaScript
12 lines
471 B
JavaScript
import { logger } from '@pezkuwi/util';
|
|
import { defaults } from './defaults.js';
|
|
const l = logger('setSS58Format');
|
|
/**
|
|
* @description Sets the global SS58 format to use for address encoding
|
|
* @deprecated Use keyring.setSS58Format
|
|
*/
|
|
export function setSS58Format(prefix) {
|
|
l.warn('Global setting of the ss58Format is deprecated and not recommended. Set format on the keyring (if used) or as part of the address encode function');
|
|
defaults.prefix = prefix;
|
|
}
|