This commit is contained in:
Jack May 2021-05-18 11:46:42 -07:00 committed by GitHub
parent 00e198d169
commit cfcae50022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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