Skip to content

Commit ee728b5

Browse files
authored
Merge pull request #21 from Squads-Protocol/create-program-interaction-improvement
feat: new program interaction policy creation format
2 parents 69deafb + cd3ce98 commit ee728b5

26 files changed

+4889
-4159
lines changed

programs/squads_smart_account_program/src/errors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ pub enum SmartAccountError {
170170
ProgramInteractionTooManyInstructionConstraints,
171171
#[msg("Program interaction constraint violation: too many spending limits. Max is 10")]
172172
ProgramInteractionTooManySpendingLimits,
173+
#[msg("Program interaction constraint violation: invalid pubkey table index")]
174+
ProgramInteractionInvalidPubkeyTableIndex,
175+
#[msg("Program interaction constraint violation: too many unique pubkeys. Max is 240 (indices 240-255 reserved for builtin programs)")]
176+
ProgramInteractionTooManyUniquePubkeys,
173177
#[msg("Program interaction hook violation: template hook error")]
174178
ProgramInteractionTemplateHookError,
175179
#[msg("Program interaction hook violation: hook authority cannot be part of hook accounts")]

0 commit comments

Comments
 (0)