github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/internal/versionutil/init.go (about)

     1  package versionutil
     2  
     3  import "github.com/nspcc-dev/neo-go/pkg/config"
     4  
     5  // TestVersion is a NeoGo version that should be used to keep all
     6  // compiled NEFs the same from run to run for tests.
     7  const TestVersion = "0.90.0-test"
     8  
     9  // init sets config.Version to a dummy TestVersion value to keep contract NEFs
    10  // consistent between test runs for those packages who import it. For test usage
    11  // only!
    12  func init() {
    13  	config.Version = TestVersion
    14  }