getChainFromAccount static method
Implementation
static String getChainFromAccount(String account) {
if (isValidAccount(account)) {
List<String> parts = account.split(':');
String namespace = parts[0];
String reference = parts[1];
return '$namespace:$reference';
}
return account;
}