Skip to content

Commit

Permalink
Merge pull request #55 from onflow/cf/addpreviewnet-previewnet
Browse files Browse the repository at this point in the history
Add previewnet to dependency supported networks
  • Loading branch information
chasefleming authored May 30, 2024
2 parents d5e18ab + 52f00d6 commit cc49f83
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions config/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,26 @@ func (c *Contracts) Remove(name string) error {
const dependencyManagerDirectory = "imports"

const (
networkEmulator = "emulator"
networkTestnet = "testnet"
networkMainnet = "mainnet"
networkEmulator = "emulator"
networkTestnet = "testnet"
networkPreviewnet = "previewnet"
networkMainnet = "mainnet"
)

func supportedNetworks() []string {
return []string{
networkEmulator,
networkTestnet,
networkPreviewnet,
networkMainnet,
}
}

var networkToChainID = map[string]flowGo.ChainID{
networkEmulator: flowGo.Emulator,
networkTestnet: flowGo.Testnet,
networkMainnet: flowGo.Mainnet,
networkEmulator: flowGo.Emulator,
networkTestnet: flowGo.Testnet,
networkPreviewnet: flowGo.Previewnet,
networkMainnet: flowGo.Mainnet,
}

func isCoreContract(networkName, contractName, contractAddress string) bool {
Expand Down

0 comments on commit cc49f83

Please sign in to comment.