Skip to content

Commit

Permalink
fix test (#17310)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay authored May 18, 2021
1 parent 00e198d commit cfcae50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion programs/bpf/c/src/ser/ser.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <solana_sdk.h>

extern uint64_t entrypoint(const uint8_t *input) {
SolAccountInfo ka[1];
SolAccountInfo ka[2];
SolParameters params = (SolParameters){.ka = ka};

sol_log(__FILE__);
Expand All @@ -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);
Expand Down

0 comments on commit cfcae50

Please sign in to comment.