decode method

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

Decodes a function signature (bytes) from the given ABI-encoded bytes.

Implementation

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