Skip to content

Commit 3354bfd

Browse files
committed
Updates erc1155 direction parsing
1 parent ff1d7ed commit 3354bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sdk/v4/pure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export const generateErc1155Order = (
371371
erc1155Token: nft.tokenAddress,
372372
erc1155TokenId: nft.tokenId,
373373
erc1155TokenAmount: nft.amount ?? '1',
374-
direction: orderData.direction.toString(),
374+
direction: parseInt(orderData.direction.toString()), // KLUDGE(johnrjj) - There's some footgun here when only doing orderData.direction.toString(), need to parseInt it
375375
erc20Token: erc20.tokenAddress,
376376
erc20TokenAmount: erc20.amount,
377377
maker: orderData.maker,

src/sdk/v4/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type ERC1155OrderStruct = {
4141
};
4242

4343
export type ERC1155OrderStructSerialized = {
44-
direction: string;
44+
direction: number;
4545
maker: string;
4646
taker: string;
4747
expiry: string;

0 commit comments

Comments
 (0)