Skip to content

Commit

Permalink
Add previewnet to supported networks
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed May 30, 2024
1 parent d5e18ab commit 52f00d6
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 52f00d6

Please sign in to comment.