Fix parsing CreateAccountWithSeed instructions (#13513) (#13516)

* Reduce required num_system_accounts and handle 2-account instructions properly

* Update CreateAccountWithSeed account docs to be correct

* Add CreateAccountWithSeed test

(cherry picked from commit 91f4e99b4c)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2020-11-11 01:01:38 +00:00
committed by GitHub
parent 9ee741e021
commit 81a4769de7
3 changed files with 67 additions and 7 deletions

View File

@@ -92,7 +92,9 @@ pub enum SystemInstruction {
/// # Account references
/// 0. [WRITE, SIGNER] Funding account
/// 1. [WRITE] Created account
/// 2. [SIGNER] Base account
/// 2. [SIGNER] (optional) Base account; the account matching the base Pubkey below must be
/// provided as a signer, but may be the same as the funding account
/// and provided as account 0
CreateAccountWithSeed {
/// Base public key
base: Pubkey,