ADAEnterpriseAddress constructor

ADAEnterpriseAddress(
  1. String address, {
  2. ADANetwork? network,
})

Implementation

factory ADAEnterpriseAddress(String address, {ADANetwork? network}) {
  final decode = AdaAddressUtils.decodeAddres(address,
      addrType: ADAAddressType.enterprise, network: network);
  return ADAEnterpriseAddress._(
      paymentCredential: AdaAddressUtils.toCerdential(decode.baseHashBytes!),
      address: address,
      network: decode.network);
}