mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-29 09:07:59 +03:00
update sign cross-chain order types
This commit is contained in:
@@ -24,7 +24,7 @@ export type SignCrossChainOrderProps = {
|
||||
serviceFeeAssetAddress: string
|
||||
signer: ethers.Signer
|
||||
chainId: SupportedChainId
|
||||
targetChainId?: SupportedChainId
|
||||
targetChainId: SupportedChainId
|
||||
}
|
||||
|
||||
export const signCrossChainOrder = async ({
|
||||
@@ -76,7 +76,7 @@ export const signCrossChainOrder = async ({
|
||||
|
||||
const crossChainOrder = {
|
||||
limitOrder: order,
|
||||
chainId: Number(targetChainId),
|
||||
targetChainId: Number(targetChainId),
|
||||
secretHash,
|
||||
lockOrderExpiration
|
||||
}
|
||||
@@ -100,7 +100,7 @@ export const signCrossChainOrder = async ({
|
||||
targetChainId: Number(targetChainId),
|
||||
lockOrderExpiration
|
||||
}
|
||||
const orderHash = getOrderHash(signedOrderWithoutId, chainId);
|
||||
const orderHash = getOrderHash(signedOrderWithoutId, targetChainId);
|
||||
|
||||
const signedCrossChainOrder: SignedCrossChainOrder = {
|
||||
...signedOrderWithoutId,
|
||||
|
||||
Reference in New Issue
Block a user