Fix zero-len slice translations (#12642) (#12656)

(cherry picked from commit d0aa8a6446)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-10-03 01:58:27 +00:00
committed by GitHub
parent ffa0ee69ca
commit efcb5cd9f0
6 changed files with 48 additions and 0 deletions

View File

@@ -117,6 +117,16 @@ fn process_instruction(
invoke(&instruction, accounts)?;
}
info!("Test no instruction data");
{
let instruction = create_instruction(
*accounts[INVOKED_PROGRAM_INDEX].key,
&[(accounts[ARGUMENT_INDEX].key, true, true)],
vec![],
);
invoke(&instruction, accounts)?;
}
info!("Test return error");
{
let instruction = create_instruction(