diff --git a/config/config_test.go b/config/config_test.go index a69e1691..5bf9878e 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -325,12 +325,11 @@ func Test_DefaultConfig(t *testing.T) { assert.Len(t, cfg.Emulators, 1) assert.Equal(t, "default", cfg.Emulators[0].Name) assert.Equal(t, "emulator-account", cfg.Emulators[0].ServiceAccount) - assert.Len(t, cfg.Networks, 5) + assert.Len(t, cfg.Networks, 4) assert.Equal(t, "emulator", cfg.Networks[0].Name) assert.Equal(t, "testing", cfg.Networks[1].Name) assert.Equal(t, "testnet", cfg.Networks[2].Name) assert.Equal(t, "mainnet", cfg.Networks[3].Name) - assert.Equal(t, "previewnet", cfg.Networks[4].Name) } func Test_DefaultPath(t *testing.T) { diff --git a/config/contract.go b/config/contract.go index 8711a853..bcfa883d 100644 --- a/config/contract.go +++ b/config/contract.go @@ -115,26 +115,23 @@ func (c *Contracts) Remove(name string) error { const dependencyManagerDirectory = "imports" const ( - networkEmulator = "emulator" - networkTestnet = "testnet" - networkPreviewnet = "previewnet" - networkMainnet = "mainnet" + networkEmulator = "emulator" + networkTestnet = "testnet" + networkMainnet = "mainnet" ) func supportedNetworks() []string { return []string{ networkEmulator, networkTestnet, - networkPreviewnet, networkMainnet, } } var networkToChainID = map[string]flowGo.ChainID{ - networkEmulator: flowGo.Emulator, - networkTestnet: flowGo.Testnet, - networkPreviewnet: flowGo.Previewnet, - networkMainnet: flowGo.Mainnet, + networkEmulator: flowGo.Emulator, + networkTestnet: flowGo.Testnet, + networkMainnet: flowGo.Mainnet, } func isCoreContract(networkName, contractName, contractAddress string) bool { diff --git a/config/network.go b/config/network.go index 826993e1..658a79f0 100644 --- a/config/network.go +++ b/config/network.go @@ -40,16 +40,11 @@ var ( Name: "mainnet", Host: "access.mainnet.nodes.onflow.org:9000", } - PreviewnetNetwork = Network{ - Name: "previewnet", - Host: "access.previewnet.nodes.onflow.org:9000", - } DefaultNetworks = Networks{ EmulatorNetwork, TestingNetwork, TestnetNetwork, MainnetNetwork, - PreviewnetNetwork, } )