mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-29 17:17:56 +03:00
update domainData chainId type
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const LOCK_ORDER_TYPES = {
|
||||
Order: [
|
||||
LockOrder: [
|
||||
{ name: 'sender', type: 'address' },
|
||||
{ name: 'expiration', type: 'uint64' },
|
||||
{ name: 'asset', type: 'address' },
|
||||
|
||||
@@ -19,7 +19,7 @@ function removeUndefined<T>(obj: Record<string, T | undefined>) {
|
||||
*/
|
||||
const getDomainData = (chainId: SupportedChainId) => ({
|
||||
...removeUndefined(EIP712Domain),
|
||||
chainId,
|
||||
chainId: Number(chainId), // check if it broke
|
||||
});
|
||||
|
||||
export default getDomainData;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ethers } from 'ethers';
|
||||
import type { LockOrder, SignedLockOrder, SupportedChainId } from '../types.js';
|
||||
import type { SupportedChainId, LockOrder, SignedLockOrder } from '../types.js';
|
||||
import getDomainData from './getDomainData.js';
|
||||
import generateSecret from '../utils/generateSecret';
|
||||
import { BigNumber } from 'bignumber.js';
|
||||
|
||||
Reference in New Issue
Block a user