mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-27 16:17:47 +03:00
add to signOrder secretHash only if targetChainId exist
This commit is contained in:
@@ -55,8 +55,12 @@ export const signOrder = async (
|
||||
)),
|
||||
nonce,
|
||||
expiration,
|
||||
secretHash,
|
||||
targetChainId,
|
||||
...(targetChainId !== undefined
|
||||
? {
|
||||
secretHash,
|
||||
targetChainId
|
||||
}
|
||||
: {}),
|
||||
buySide: side === 'BUY' ? 1 : 0,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user