native: add NEP-11 check for name service
This commit is contained in:
parent
eb26a61078
commit
ae30e30321
1 changed files with 7 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue