SubstrateCoinConf.fromCoinConf constructor
SubstrateCoinConf.fromCoinConf({
- required CoinConf coinConf,
- required AddrEncoder addressEncode,
- required EllipticCurveTypes type,
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({
required CoinConf coinConf,
required AddrEncoder addressEncode,
required EllipticCurveTypes type,
}) {
return SubstrateCoinConf(
coinNames: coinConf.coinName,
ss58Format: coinConf.params.addrSs58Format!,
addressEncoder: addressEncode,
type: type);
}