@@ -2,9 +2,12 @@
|
||||
* @brief Instruction definitions for the invoked program
|
||||
*/
|
||||
|
||||
const int TEST_VERIFY_TRANSLATIONS = 0;
|
||||
const int TEST_RETURN_ERROR = 1;
|
||||
const int TEST_DERIVED_SIGNERS = 2;
|
||||
const int TEST_VERIFY_NESTED_SIGNERS = 3;
|
||||
const int TEST_VERIFY_WRITER = 4;
|
||||
const int TEST_NESTED_INVOKE = 5;
|
||||
#include <solana_sdk.h>
|
||||
|
||||
const uint8_t TEST_VERIFY_TRANSLATIONS = 0;
|
||||
const uint8_t TEST_RETURN_ERROR = 1;
|
||||
const uint8_t TEST_DERIVED_SIGNERS = 2;
|
||||
const uint8_t TEST_VERIFY_NESTED_SIGNERS = 3;
|
||||
const uint8_t TEST_VERIFY_WRITER = 4;
|
||||
const uint8_t TEST_VERIFY_PRIVILEGE_ESCALATION = 5;
|
||||
const uint8_t TEST_NESTED_INVOKE = 6;
|
||||
|
@@ -136,6 +136,9 @@ extern uint64_t entrypoint(const uint8_t *input) {
|
||||
sol_assert(accounts[ARGUMENT_INDEX].is_writable);
|
||||
break;
|
||||
}
|
||||
case TEST_VERIFY_PRIVILEGE_ESCALATION: {
|
||||
sol_log("Success");
|
||||
}
|
||||
case TEST_NESTED_INVOKE: {
|
||||
sol_log("invoke");
|
||||
|
||||
|
Reference in New Issue
Block a user