From 83cb5ff07bbd502f89402faa5ceceb2bf77047ff Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 19 Mar 2021 12:12:52 +0300 Subject: [PATCH] roles: add missing NeoFSAlphabet role --- pkg/compiler/native_test.go | 1 + pkg/interop/native/roles/roles.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/compiler/native_test.go b/pkg/compiler/native_test.go index 8d8771f55..644d9bace 100644 --- a/pkg/compiler/native_test.go +++ b/pkg/compiler/native_test.go @@ -71,6 +71,7 @@ func TestContractParameterTypes(t *testing.T) { func TestRoleManagementRole(t *testing.T) { require.EqualValues(t, native.RoleOracle, roles.Oracle) require.EqualValues(t, native.RoleStateValidator, roles.StateValidator) + require.EqualValues(t, native.RoleNeoFSAlphabet, roles.NeoFSAlphabet) require.EqualValues(t, native.RoleP2PNotary, roles.P2PNotary) } diff --git a/pkg/interop/native/roles/roles.go b/pkg/interop/native/roles/roles.go index 6ccdb00a0..a8c22b1ae 100644 --- a/pkg/interop/native/roles/roles.go +++ b/pkg/interop/native/roles/roles.go @@ -20,6 +20,7 @@ type Role byte const ( StateValidator Role = 4 Oracle Role = 8 + NeoFSAlphabet Role = 16 // P2PNotary is an extension of Neo protocol available on specifically configured NeoGo networks. P2PNotary Role = 128 )