program log pubkey as base58 (#12901)

This commit is contained in:
Jack May
2020-10-15 09:11:54 -07:00
committed by GitHub
parent b1b2c6ee7b
commit 3f9e6a600b
10 changed files with 142 additions and 34 deletions

View File

@ -12,9 +12,9 @@
extern uint64_t entrypoint(const uint8_t *input) {
SolAccountInfo ka[NUM_KA];
SolParameters params = (SolParameters) { .ka = ka };
SolParameters params = (SolParameters){.ka = ka};
if (!sol_deserialize(input, &params, SOL_ARRAY_SIZE(ka))) {
return ERROR_INVALID_ARGUMENT;
return ERROR_INVALID_ARGUMENT;
}
uint8_t *val = (uint8_t *)ka[0].data;
size_t current = 1;
@ -35,6 +35,12 @@ extern uint64_t entrypoint(const uint8_t *input) {
// sol_sha256(bytes, SOL_ARRAY_SIZE(bytes), result);
// *val = result[0];
// }
// // Uncomment for Pubkey logging syscall
// {
// SolPubkey pubkey;
// sol_log_pubkey(&pubkey);
// }
}
return *val;
}