ComputeBudgetProgram.setComputeUnitLimit constructor
ComputeBudgetProgram.setComputeUnitLimit({
- 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,
);
}