ro option is now optional

This commit is contained in:
Mikhail Gladchenko
2023-06-21 15:01:43 +01:00
parent a29b85896d
commit 3d4fea42ea
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.28",
"version": "0.19.29",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -82,7 +82,7 @@ export const fullOrderSchema = z.object({
c: subOrderSchema.array(),
E: z.enum(executionTypes).optional(), // execution type
C: z.string().optional(), // trigger condition
ro: z.boolean(), // is reversed order
ro: z.boolean().optional(), // is reversed order
}).transform((val) => ({
...val,
k: 'full' as const,