move system_instruction::transfer() to credit-debit (#6677)

* transfer no credit only

* use a credit-only transfer in the credit-only test
This commit is contained in:
Rob Walker
2019-11-04 12:30:59 -08:00
committed by GitHub
parent d085c8626f
commit b9b535c30f
2 changed files with 28 additions and 15 deletions

View File

@ -83,7 +83,7 @@ pub fn assign(from_pubkey: &Pubkey, program_id: &Pubkey) -> Instruction {
pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction {
let account_metas = vec![
AccountMeta::new(*from_pubkey, true),
AccountMeta::new_credit_only(*to_pubkey, false),
AccountMeta::new(*to_pubkey, false),
];
Instruction::new(
system_program::id(),