fix Instruction and CompiledInstruction field names (#4895)

* s/program_ids_index/program_id for Instruction

* s/program_ids_index/program_id_index for CompiledInstruction
This commit is contained in:
TristanDebrunner
2019-07-01 18:34:22 -06:00
committed by GitHub
parent 417066ad30
commit 091999a17e
7 changed files with 16 additions and 20 deletions

View File

@ -256,7 +256,7 @@ mod tests {
// Attack! Part 2: Point the instruction to the expected, but unsigned, key.
message.account_keys.insert(3, alice_pubkey);
message.instructions[0].accounts[0] = 3;
message.instructions[0].program_ids_index = 4;
message.instructions[0].program_id_index = 4;
// Ensure the transaction fails because of the unsigned key.
assert_eq!(
@ -305,7 +305,7 @@ mod tests {
// Attack! Part 2: Point the instruction to the expected, but unsigned, key.
message.account_keys.insert(3, alice_pubkey);
message.instructions[0].accounts[0] = 3;
message.instructions[0].program_ids_index = 4;
message.instructions[0].program_id_index = 4;
// Ensure the transaction fails because of the unsigned key.
assert_eq!(