From b0d6bbf24c9e6e37a4e0bd7e9c77686ea7ab9e8a Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 18 May 2021 10:24:45 -0700 Subject: [PATCH] fix test --- 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);