Skip to content

Type Alias: SimulateError

type SimulateError = {
  description: string;
  revertData?: Bytes;
  status: Exclude<SimulateStatus, typeof Success>;
};

Defined in: apps/submitter/lib/handlers/simulate/types.ts:71

Failed simulate call.

It was either attempted but failed onchain (mostly likely due to failing validation), or it failed to be carried out for offchain operational reasons (communication with the node, submitter capacity, etc...).

You can use call isOnchain and isSubmitterError function on the status to check if the error belongs to the respective categories.

Properties

description

description: string;

Defined in: apps/submitter/lib/handlers/simulate/types.ts:78

Description of the problem.


revertData?

optional revertData: Bytes;

Defined in: apps/submitter/lib/handlers/simulate/types.ts:75

TODO copy from execute/types.ts


status

status: Exclude<SimulateStatus, typeof Success>;

Defined in: apps/submitter/lib/handlers/simulate/types.ts:72