diff --git a/package-lock.json b/package-lock.json index 17d0a01..1614f0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.0-rc11", + "version": "0.22.0-rc12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.22.0-rc11", + "version": "0.22.0-rc12", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index af9d104..c7032a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.0-rc11", + "version": "0.22.0-rc12", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/crypt/signOrder.ts b/src/crypt/signOrder.ts index 3f2068f..7b1ca80 100644 --- a/src/crypt/signOrder.ts +++ b/src/crypt/signOrder.ts @@ -43,6 +43,7 @@ export const signOrder = async ({ }: SignOrderProps): Promise => { const nonce = Date.now(); const expiration = nonce + DEFAULT_EXPIRATION; + const lockOrderExpiration = nonce + LOCK_ORDER_EXPIRATION; const isCrossChain = targetChainId === undefined || targetChainId !== chainId; @@ -84,7 +85,7 @@ export const signOrder = async ({ limitOrder: order, chainId: Number(chainId), secretHash, - lockOrderExpiration: LOCK_ORDER_EXPIRATION + lockOrderExpiration } // TODO: change what to show @@ -109,7 +110,7 @@ export const signOrder = async ({ targetChainId: Number(targetChainId) } : {}), - lockOrderExpiration: LOCK_ORDER_EXPIRATION + lockOrderExpiration } const orderHash = getOrderHash(signedOrderWithoutId, chainId);