18 lines
377 B
C
18 lines
377 B
C
/**
|
|
* @brief Example C based SBF program that prints out the parameters
|
|
* passed to it
|
|
*/
|
|
#include <sol/deserialize.h>
|
|
|
|
|
|
extern uint64_t entrypoint(const uint8_t *input) {
|
|
SolAccountInfo ka[2];
|
|
SolParameters params = (SolParameters) { .ka = ka };
|
|
|
|
if (!sol_deserialize(input, ¶ms, SOL_ARRAY_SIZE(ka))) {
|
|
return ERROR_INVALID_ARGUMENT;
|
|
}
|
|
|
|
return SUCCESS;
|
|
}
|