Skip to content

Commit

Permalink
Remove previewnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Sep 5, 2024
1 parent f6ec637 commit fb2dd98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
1 change: 0 additions & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ func Test_DefaultConfig(t *testing.T) {
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) {
Expand Down
15 changes: 6 additions & 9 deletions config/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 0 additions & 5 deletions config/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)

Expand Down

0 comments on commit fb2dd98

Please sign in to comment.