From cfcae500220f394d2dff5075c1a3a7d67ea80378 Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 18 May 2021 11:46:42 -0700 Subject: [PATCH] fix test (#17310) --- programs/bpf/c/src/ser/ser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/bpf/c/src/ser/ser.c b/programs/bpf/c/src/ser/ser.c index 50900fbaf098e3..4d09f9409dbee7 100644 --- a/programs/bpf/c/src/ser/ser.c +++ b/programs/bpf/c/src/ser/ser.c @@ -5,7 +5,7 @@ #include extern uint64_t entrypoint(const uint8_t *input) { - SolAccountInfo ka[1]; + SolAccountInfo ka[2]; SolParameters params = (SolParameters){.ka = ka}; sol_log(__FILE__); @@ -16,6 +16,8 @@ extern uint64_t entrypoint(const uint8_t *input) { char ka_data[] = {1, 2, 3}; SolPubkey ka_owner; + sol_memset(ka_owner.x, 0, SIZE_PUBKEY); // set to system program + sol_assert(params.ka_num == 2); for (int i = 0; i < 2; i++) { sol_assert(*params.ka[i].lamports == 42);