Skip to content

Commit

Permalink
fix(executor): set max CU
Browse files Browse the repository at this point in the history
  • Loading branch information
00nktk committed Nov 13, 2024
1 parent 85d6edb commit b0425d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/src/transactions/preflight_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl TransactionBuilder {
if tx.cu_limit().map_or(true, |n| n != MAX_COMPUTE_UNITS) {
tracing::warn!(?tx_hash, "retry with max CU");
tx = tx
.with_cu_limit(MAX_HEAP_SIZE)
.with_cu_limit(MAX_COMPUTE_UNITS)
.context("cannot set compute units")?;
}
Ok(tx)
Expand Down

0 comments on commit b0425d0

Please sign in to comment.