Const
Schema for errors returned by simulateHandleOp that contain a cause with data. Used for parsing error responses from the RPC.
const error = { cause: { data: "0x1234..." }};const result = errorWithCauseSchema.parse(error); Copy
const error = { cause: { data: "0x1234..." }};const result = errorWithCauseSchema.parse(error);
Schema for errors returned by simulateHandleOp that contain a cause with data. Used for parsing error responses from the RPC.