Reject modifications to userdata if not owned by the program

This commit is contained in:
Greg Fitzgerald
2019-02-15 11:55:32 -07:00
parent 77ea4cd285
commit 5541eedcc4
2 changed files with 21 additions and 3 deletions

View File

@ -25,6 +25,9 @@ pub enum ProgramError {
/// Program spent the tokens of an account that doesn't belong to it
ExternalAccountTokenSpend,
/// Program modified the userdata of an account that doesn't belong to it
ExternalAccountUserdataModified,
/// An account's userdata contents was invalid
InvalidUserdata,