roles: add missing NeoFSAlphabet role

This commit is contained in:
Roman Khimov 2021-03-19 12:12:52 +03:00
parent b56e028733
commit 83cb5ff07b
2 changed files with 2 additions and 0 deletions

View file

@ -71,6 +71,7 @@ func TestContractParameterTypes(t *testing.T) {
func TestRoleManagementRole(t *testing.T) { func TestRoleManagementRole(t *testing.T) {
require.EqualValues(t, native.RoleOracle, roles.Oracle) require.EqualValues(t, native.RoleOracle, roles.Oracle)
require.EqualValues(t, native.RoleStateValidator, roles.StateValidator) require.EqualValues(t, native.RoleStateValidator, roles.StateValidator)
require.EqualValues(t, native.RoleNeoFSAlphabet, roles.NeoFSAlphabet)
require.EqualValues(t, native.RoleP2PNotary, roles.P2PNotary) require.EqualValues(t, native.RoleP2PNotary, roles.P2PNotary)
} }

View file

@ -20,6 +20,7 @@ type Role byte
const ( const (
StateValidator Role = 4 StateValidator Role = 4
Oracle Role = 8 Oracle Role = 8
NeoFSAlphabet Role = 16
// P2PNotary is an extension of Neo protocol available on specifically configured NeoGo networks. // P2PNotary is an extension of Neo protocol available on specifically configured NeoGo networks.
P2PNotary Role = 128 P2PNotary Role = 128
) )