mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-31 18:18:01 +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,
|
||||
};
|
||||
|
||||
|
||||
@@ -49,9 +49,9 @@ export type Order = {
|
||||
matcherFee: number // uint64
|
||||
nonce: number // uint64
|
||||
expiration: number // uint64
|
||||
secretHash: string // uint64
|
||||
buySide: 0 | 1 // uint8, 1=buy, 0=sell
|
||||
targetChainId: ethers.BigNumberish | undefined // uint64
|
||||
secretHash?: string // uint64
|
||||
targetChainId?: ethers.BigNumberish // uint64
|
||||
}
|
||||
|
||||
export type LockOrder = {
|
||||
|
||||
Reference in New Issue
Block a user