SubstrateCoinConf.fromCoinConf constructor

SubstrateCoinConf.fromCoinConf(
  1. CoinConf coinConf
)

Factory method to create a SubstrateCoinConf from a generic CoinConf.

This method takes a generic CoinConf instance and extracts the coin names and SS58 address format information to create a SubstrateCoinConf.

Implementation

factory SubstrateCoinConf.fromCoinConf(CoinConf coinConf) {
  return SubstrateCoinConf(
      coinNames: coinConf.coinName,
      ss58Format: coinConf.params.addrSs58Format!);
}