change placeOrder body

This commit is contained in:
TheJuze
2024-05-30 12:46:44 +03:00
parent 5f4e540160
commit c76597e40f
3 changed files with 4 additions and 12 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.22.0-rc10",
"version": "0.22.0-rc11",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.22.0-rc10",
"version": "0.22.0-rc11",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

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

View File

@@ -231,14 +231,6 @@ class Aggregator {
const url = new URL(`${this.apiUrl}/api/v1/order/${isCreateInternalOrder ? 'internal' : ''}`);
const body = {
...signedOrder,
lockExpiration: signedOrder.lockOrderExpiration,
rawExchangeRestrictions
}
delete body.lockOrderExpiration;
return fetchWithValidation(
url.toString(),
z.object({
@@ -254,7 +246,7 @@ class Aggregator {
{
headers,
method: 'POST',
body: JSON.stringify(body),
body: JSON.stringify({ ...signedOrder, rawExchangeRestrictions }),
},
errorSchema,
);