decodeError method

List decodeError(
  1. List<int> encodedParams
)

Decodes the error parameters from the encoded bytes.

Implementation

List<dynamic> decodeError(List<int> encodedParams) {
  List<int> encodeBytes =
      List.from(encodedParams.sublist(ABIConst.selectorLength));
  final abi =
      AbiParameter(name: "", type: "tuple", components: List.from(inputs))
          .decode(encodeBytes);
  return abi.result;
}