@clonegod/ttd-sol-common 2.0.50 → 2.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/trade/tx_builder.ts +5 -0
package/package.json
CHANGED
package/src/trade/tx_builder.ts
CHANGED
|
@@ -102,6 +102,11 @@ export class SolTransactionBuilder {
|
|
|
102
102
|
const priorityFeeMicroLamports = Math.floor((sol_priority_fee_lamports * LAMPORTS_PER_MICRO_LAMPORTS) / cu_limit)
|
|
103
103
|
// console.log('getPreInstructions', { cu_limit, sol_priority_fee_lamports, priorityFeeMicroLamports, })
|
|
104
104
|
|
|
105
|
+
// set compute budget instruction
|
|
106
|
+
// const computeBudgetInstruction = ComputeBudgetProgram.setComputeUnitLimit({
|
|
107
|
+
// units: cu_limit,
|
|
108
|
+
// })
|
|
109
|
+
|
|
105
110
|
// set compute budget instruction with jitodontfront
|
|
106
111
|
const computeBudgetInstruction = this.createComputeUnitLimitWithJitoDontFront(cu_limit)
|
|
107
112
|
|