use more accurate AllSet PermFlag

This commit is contained in:
Ethan Buchman
2015-06-20 02:53:21 -04:00
committed by Jae Kwon
parent 75fb6c184e
commit 415c12fca5
3 changed files with 45 additions and 37 deletions

View File

@ -30,9 +30,12 @@ const (
DefaultBBPB = Send | Call | CreateContract | CreateAccount | Bond | Name
// XXX: must be adjusted if base perms added/removed
NumBasePermissions uint = 7
TopBasePermission PermFlag = 1 << (NumBasePermissions - 1)
AllSet PermFlag = (1 << 63) - 1 + (1 << 63)
AllBasePermissions PermFlag = TopBasePermission | (TopBasePermission - 1)
AllSet PermFlag = AllBasePermissions | AllSNativePermissions
)
// should have same ordering as above