mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
parent
c88ebaede9
commit
36d486a664
12 changed files with 45 additions and 22 deletions
|
@ -1639,7 +1639,7 @@ func TestConfigNativeUpdateHistory(t *testing.T) {
|
|||
cfgPath := path.Join(prefixPath, fmt.Sprintf("protocol.%s.yml", cfgFileSuffix))
|
||||
cfg, err := config.LoadFile(cfgPath)
|
||||
require.NoError(t, err, fmt.Errorf("failed to load %s", cfgPath))
|
||||
natives := native.NewContracts(cfg.ProtocolConfiguration.P2PSigExtensions, map[string][]uint32{})
|
||||
natives := native.NewContracts(cfg.ProtocolConfiguration)
|
||||
assert.Equal(t, len(natives.Contracts),
|
||||
len(cfg.ProtocolConfiguration.NativeUpdateHistories),
|
||||
fmt.Errorf("protocol configuration file %s: extra or missing NativeUpdateHistory in NativeActivations section", cfgPath))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue