getChainFromAccount static method

String getChainFromAccount(
  1. String account
)

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;
}