native: add NEP-11 check for name service

This commit is contained in:
Evgeniy Stratonikov 2021-02-19 11:56:15 +03:00
parent eb26a61078
commit ae30e30321

View file

@ -3,6 +3,8 @@ package native
import (
"testing"
"github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest"
"github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest/standard"
"github.com/stretchr/testify/require"
)
@ -86,3 +88,8 @@ func TestNameService_CheckName(t *testing.T) {
}
}
}
func TestNameService_NEP11(t *testing.T) {
ns := newNameService()
require.NoError(t, standard.Check(&ns.Manifest, manifest.NEP11StandardName))
}