fix: update example programs to use new sdk api
This commit is contained in:
committed by
Michael Vines
parent
4a3a830789
commit
a4e7ce3133
@ -5,14 +5,14 @@
|
||||
|
||||
#include <solana_sdk.h>
|
||||
|
||||
extern uint32_t entrypoint(const uint8_t *input) {
|
||||
extern uint64_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 1;
|
||||
return ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
sol_log_params(¶ms);
|
||||
return SUCCESS;
|
||||
|
Reference in New Issue
Block a user