function checkResultErrors(result): {
  "error": Error;
  "path": (string | number)[];
 }[]

Returns all errors found in a Result.

Since certain errors encountered when creating a Result do not impact the ability to continue parsing data, they are deferred until they are actually accessed. Hence a faulty string in an Event that is never used does not impact the program flow.

However, sometimes it may be useful to access, identify or validate correctness of a Result.

Parameters

ParameterTypeDescription
resultResultThe Result to check for errors.

Returns

{ "error": Error; "path": (string | number)[]; }[]

An array of objects with the path to the error and the error itself.

Source

abi/coders/abstract-coder.ts:313