Skip to content

Commit

Permalink
Remove KeyedAccount in builtin program "BPF loader" (solana-labs#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 and jeffwashington committed Jun 30, 2022
1 parent 8b4f492 commit 4d7e89d
Showing 1 changed file with 235 additions and 233 deletions.
Loading

0 comments on commit 4d7e89d

Please sign in to comment.