The TooManyAccountLocks error is currently checking the length of the AccountKeys for a SantizedMessage. However, this does not allow for transactions with more than 64 accounts, even if the transaction is locking less than 64 accounts. This is a blocking issue for many features on our app, since our transactions are quite large and use multiple LUTs.
Proposed Solution
Instead of using account_keys.len(), Change the TooManyAccountLocks error to check accountKeys the number of accounts where writable = true. Only error if the writable amount is too large.
Problem
The TooManyAccountLocks error is currently checking the length of the AccountKeys for a SantizedMessage. However, this does not allow for transactions with more than 64 accounts, even if the transaction is locking less than 64 accounts. This is a blocking issue for many features on our app, since our transactions are quite large and use multiple LUTs.
Proposed Solution
Instead of using account_keys.len(), Change the TooManyAccountLocks error to check accountKeys the number of accounts where writable = true. Only error if the writable amount is too large.