validateAddressHash static method
Implementation
static List<int> validateAddressHash(List<int> bytes) {
if (bytes.length != _TonAddressConst.addressHashLength) {
throw AddressConverterException.addressBytesValidationFailed(
reason: "Invalid address bytes.",
details: {
"expected": _TonAddressConst.addressHashLength.toString(),
"length": bytes.length.toString(),
},
);
}
return bytes.asImmutableBytes;
}