getAccountsChains function

List<String> getAccountsChains(
  1. List<String> accounts
)

Implementation

List<String> getAccountsChains(List<String> accounts) {
  final List<String> chains = [];
  accounts.forEach((account) {
    final split = account.split(":");
    chains.add('${split[0]}:${split[1]}');
  });

  return chains;
}