Add PubkeyError for ProgramError (#10748)

This commit is contained in:
Jack May
2020-06-23 11:19:27 -07:00
committed by GitHub
parent 685becad13
commit db4a18ada4
7 changed files with 41 additions and 4 deletions

View File

@ -35,6 +35,9 @@ extern uint64_t entrypoint(const uint8_t *input) {
case(6):
sol_log("return unknown builtin");
return TO_BUILTIN(50);
case(9):
sol_log("return pubkey error");
return MAX_SEED_LENGTH_EXCEEDED;
default:
sol_log("Unrecognized command");
return ERROR_INVALID_INSTRUCTION_DATA;