decodeAddr method

  1. @override
List<int> decodeAddr(
  1. String addr, {
  2. List<int>? netVersion,
  3. String? hrp,
})
override

Overrides the base class method to decode a P2SH (Pay-to-Script-Hash) address.

Implementation

@override
List<int> decodeAddr(String addr, {List<int>? netVersion, String? hrp}) {
  /// Delegate the decoding process to a specialized P2PKH address decoder with HRP and network version.
  return BchP2PKHAddrDecoder().decodeAddr(
    addr,
    hrp: hrp,
    netVersion: netVersion,
  );
}