fix: update examples (#485)
This commit is contained in:
@ -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, ¶ms, SOL_ARRAY_SIZE(ka))) {
|
||||
return false;
|
||||
return 1;
|
||||
}
|
||||
sol_log_params(¶ms);
|
||||
return true;
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user