abiEncode method

  1. @override
EncoderResult abiEncode(
  1. AbiParameter params,
  2. String input
)
override

Encodes a string value to ABI-encoded bytes.

Implementation

@override
EncoderResult abiEncode(AbiParameter params, String input) {
  return const BytesCoder()
      .abiEncode(AbiParameter.bytes, StringUtils.encode(input));
}