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);