fix: update examples (#485)

This commit is contained in:
Jack May
2019-09-13 12:36:08 -07:00
committed by Michael Vines
parent 82aaa8af47
commit ee3acbf1ba
7 changed files with 56 additions and 44 deletions

View File

@ -5,15 +5,15 @@
#include <solana_sdk.h>
extern bool entrypoint(const uint8_t *input) {
extern uint32_t entrypoint(const uint8_t *input) {
SolKeyedAccount ka[1];
SolParameters params = (SolParameters) { .ka = ka };
sol_log("Hello World");
if (!sol_deserialize(input, &params, SOL_ARRAY_SIZE(ka))) {
return false;
return 1;
}
sol_log_params(&params);
return true;
return SUCCESS;
}