program log pubkey as base58 (#12901)
This commit is contained in:
@ -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, ¶ms, 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user