decode method

  1. @override
DecoderResult<String> decode(
  1. AbiParameter params,
  2. List<int> bytes
)
override

Decodes a string value from the given ABI-encoded bytes.

Implementation

@override
DecoderResult<String> decode(AbiParameter params, List<int> bytes) {
  final decode = const BytesCoder().decode(AbiParameter.bytes, bytes);
  return DecoderResult(
      result: StringUtils.decode(decode.result), consumed: decode.consumed);
}