Skip to content

Commit

Permalink
fix compute units type
Browse files Browse the repository at this point in the history
  • Loading branch information
wiyarmir committed Mar 16, 2024
1 parent 378d51c commit 9abde76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public object ComputeBudgetProgram : Program {
* @param units Number of compute units to request.
*/
public fun setComputeUnitLimit(
maxUnits: ULong,
maxUnits: UInt,
): TransactionInstruction = createTransactionInstruction(
programId = programId,
keys = listOf(
),
data = Buffer()
.writeByte(Instruction.SetComputeUnitLimit.index.toInt())
.writeLongLe(maxUnits.toLong())
.writeIntLe(maxUnits.toInt())
.readByteArray(),
)

Expand Down

0 comments on commit 9abde76

Please sign in to comment.