legacyEip712Encode method
Legacy EIP-712 encoding for BaseHexAddress.
Optionally keeps the size unchanged based on the keepSize parameter.
Implementation
@override
EncoderResult legacyEip712Encode(
AbiParameter params, Object input, bool keepSize) {
if (keepSize) return abiEncode(params, input);
final asBytes = _addressToBytes(input);
List<int> addrBytes = asBytes;
addrBytes = addrBytes.sublist(addrBytes.length - addrLength);
return EncoderResult(isDynamic: false, encoded: asBytes, name: params.name);
}