ComputeBudgetProgram.setComputeUnitLimit constructor

ComputeBudgetProgram.setComputeUnitLimit({
  1. required ComputeBudgetSetComputeUnitLimitLayout layout,
})

Creates an instruction to set compute unit limit.

Implementation

factory ComputeBudgetProgram.setComputeUnitLimit({
  required ComputeBudgetSetComputeUnitLimitLayout layout,
}) {
  return ComputeBudgetProgram(
    layout: layout,
    keys: [],
    programId: ComputeBudgetConst.programId,
  );
}