config: add InitialGASSupply, fix #2073

We now have 52M by default.
This commit is contained in:
Roman Khimov 2021-07-20 15:54:56 +03:00
parent c88ebaede9
commit 36d486a664
12 changed files with 45 additions and 22 deletions

View file

@ -4,12 +4,14 @@ import (
"testing"
"unicode"
"github.com/nspcc-dev/neo-go/pkg/config"
"github.com/stretchr/testify/require"
)
// "C" and "O" can easily be typed by accident.
func TestNamesASCII(t *testing.T) {
cs := NewContracts(true, map[string][]uint32{})
cfg := config.ProtocolConfiguration{P2PSigExtensions: true}
cs := NewContracts(cfg)
for _, c := range cs.Contracts {
require.True(t, isASCII(c.Metadata().Name))
for _, m := range c.Metadata().Methods {