File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/sdk/src/contract/edition-v2/write Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @soundxyz/sdk ' : patch
3
+ ---
4
+
5
+ Add option to disable cdCompress for mints
Original file line number Diff line number Diff line change @@ -5,17 +5,16 @@ import { cdCompress } from '../../../utils/calldata'
5
5
6
6
export function editionMint < Client extends Pick < WalletClient , 'writeContract' | 'sendTransaction' > > (
7
7
client : Client ,
8
- { input } : EditionMintContractInput ,
8
+ { input, disableCdCompress } : EditionMintContractInput & { disableCdCompress ?: boolean } ,
9
9
) {
10
10
const calldata = encodeFunctionData ( { abi : input . abi , functionName : input . functionName , args : input . args } )
11
- const compressedCalldata = cdCompress ( calldata )
12
11
13
12
return client . sendTransaction ( {
14
13
account : input . account ,
15
14
chain : input . chain ,
16
15
value : input . value ,
17
16
to : input . address ,
18
- data : compressedCalldata ,
17
+ data : ! ! disableCdCompress ? calldata : cdCompress ( calldata ) ,
19
18
gas : input . gas ,
20
19
maxFeePerGas : input . maxFeePerGas ,
21
20
maxPriorityFeePerGas : input . maxPriorityFeePerGas ,
You can’t perform that action at this time.
0 commit comments