add to signOrder secretHash only if targetChainId exist

This commit is contained in:
TheJuze
2024-01-19 12:15:17 +03:00
parent 72e1e9464e
commit 330fc513e5
4 changed files with 11 additions and 7 deletions

View File

@@ -55,8 +55,12 @@ export const signOrder = async (
)),
nonce,
expiration,
secretHash,
targetChainId,
...(targetChainId !== undefined
? {
secretHash,
targetChainId
}
: {}),
buySide: side === 'BUY' ? 1 : 0,
};