Cannot change owner if account is executable (#13977)

This commit is contained in:
Jack May
2020-12-07 11:37:07 -08:00
committed by GitHub
parent 6ae4d2e5cb
commit dca579851c
2 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,7 @@ adhere to the runtime policy.
The policy is as follows:
- Only the owner of the account may change owner.
- And only if the account is writable.
- And only if the account is not executable
- And only if the data is zero-initialized or empty.
- An account not assigned to the program cannot have its balance decrease.
- The balance of read-only and executable accounts may not change.