decodeAddr method
Overrides the base class method to decode a Harmony ONE address.
Implementation
@override
List<int> decodeAddr(String addr) {
final List<int> addrDecBytes = Bech32Decoder.decode(
AddrKeyValidator.getConfigArg(
CoinsConf.harmonyOne.params.addrHrp,
"addrHrp",
),
addr,
);
/// Decode the address again as an Ethereum address with a custom prefix.
return EthAddrDecoder().decodeAddr(
AddrKeyValidator.getConfigArg(
CoinsConf.ethereum.params.addrPrefix,
"addrPrefix",
) +
BytesUtils.toHexString(addrDecBytes),
skipChecksum: true,
);
}