decodeError method
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;
}