import { AddressPrefix , Account } from '@signumjs/core' ; export function adjustLegacyAddressPrefix ( account , isMainNet = true ) { const OldPrefix = 'BURST' ; const NewPrefix = isMainNet ? AddressPrefix . MainNet : AddressPrefix . TestNet ; if ( account . accountRS . startsWith ( OldPrefix ) ) { account . accountRS = account . accountRS . replace ( OldPrefix , NewPrefix ) ; } if ( account . accountRSExtended && account . accountRSExtended . startsWith ( OldPrefix ) ) { account . accountRSExtended = account . accountRSExtended . replace ( OldPrefix , NewPrefix ) ; } return account ; }