update sign cross-chain order types

This commit is contained in:
TheJuze
2024-06-03 10:21:25 +03:00
parent 517f127b29
commit ab4a6745d7
5 changed files with 10 additions and 10 deletions

View File

@@ -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,