mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-04 03:58:00 +03:00
update signOrder
This commit is contained in:
@@ -231,6 +231,14 @@ 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({
|
||||
@@ -246,7 +254,7 @@ class Aggregator {
|
||||
{
|
||||
headers,
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ ...signedOrder, rawExchangeRestrictions }),
|
||||
body: JSON.stringify(body),
|
||||
},
|
||||
errorSchema,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user