diff --git a/sdk/program/src/message/versions/v0/mod.rs b/sdk/program/src/message/versions/v0/mod.rs index 94aeaf946a..b2f24fe918 100644 --- a/sdk/program/src/message/versions/v0/mod.rs +++ b/sdk/program/src/message/versions/v0/mod.rs @@ -129,6 +129,8 @@ impl Message { // the combined number of static and dynamic account keys must be <= 256 // since account indices are encoded as `u8` + // Note that this is different from the per-transaction account load cap + // as defined in `Bank::get_transaction_account_lock_limit` let total_account_keys = num_static_account_keys.saturating_add(num_dynamic_account_keys); if total_account_keys > 256 { return Err(SanitizeError::IndexOutOfBounds);