Fix parsing CreateAccountWithSeed instructions (#13513)

* Reduce required num_system_accounts and handle 2-account instructions properly

* Update CreateAccountWithSeed account docs to be correct

* Add CreateAccountWithSeed test
This commit is contained in:
Tyera Eulberg
2020-11-10 16:51:53 -07:00
committed by GitHub
parent 9ca8e98525
commit 91f4e99b4c
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,