Skip to content

Commit

Permalink
Remove KeyedAccount in builtin program "BPF loader" (#24381)
Browse files Browse the repository at this point in the history
* Uses transaction_context.get_key_of_account_at_index() when only the key is needed.

* Uses "!instruction_context.is_signer()" instead of ".signer_key().is_none()".

* Uses instruction_context.get_index_in_transaction() to detect account aliasing.

* Makes sure that there is only one KeyedAccount at a time.
Everywhere except for DeployWithMaxDataLen and Upgrade.

* Makes sure that there is only one KeyedAccount at a time.
In DeployWithMaxDataLen and Upgrade.

* Replaces KeyedAccount by BorrowedAccount.

* Removes unused code.
  • Loading branch information
Lichtso authored Apr 19, 2022
1 parent 697c9e1 commit 998cdd1
Showing 1 changed file with 235 additions and 233 deletions.
Loading

0 comments on commit 998cdd1

Please sign in to comment.