praseAddressBytes static method
check address bytes and convert special address to 32bytes.
Implementation
static List<int> praseAddressBytes(List<int> bytes) {
final length = bytes.length;
if (length != AptosAddrConst.addressBytesLength) {
throw AddressConverterException("Invalid aptos address bytes length.",
details: {
"expected": AptosAddrConst.addressBytesLength,
"length": bytes.length
});
}
return bytes;
}