getCoin static method
Retrieves the SubstrateCoinConf for the given SubstrateCoin. If the provided coin is not an instance of SubstrateCoins, an error is thrown.
Implementation
static SubstrateCoinConf getCoin(CryptoCoins coin) {
if (coin is! SubstrateCoins) {
throw ArgumentException(
"Coin type is not an enumerative of SubstrateCoins");
}
return coinToConf[coin.value]!;
}