mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-14 06:57:44 +03:00
update signOrder function
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc9",
|
||||
"version": "0.21.0-rc10",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc9",
|
||||
"version": "0.21.0-rc10",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc9",
|
||||
"version": "0.21.0-rc10",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -69,11 +69,11 @@ export const signOrder = async ({
|
||||
)),
|
||||
nonce,
|
||||
expiration,
|
||||
...(isCrossChain
|
||||
? {
|
||||
targetChainId
|
||||
}
|
||||
: {}),
|
||||
// ...(isCrossChain
|
||||
// ? {
|
||||
// targetChainId
|
||||
// }
|
||||
// : {}),
|
||||
buySide: side === 'BUY' ? 1 : 0,
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ export const signOrder = async ({
|
||||
...order,
|
||||
id: hashOrder(order),
|
||||
signature: fixedSignature,
|
||||
...(isCrossChain ? { secret, secretHash } : {})
|
||||
...(isCrossChain ? { secret, secretHash, targetChainId } : {})
|
||||
};
|
||||
return signedOrder;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user