From 52f00d694be51f8bb1190ee380e6b02f68bfba9d Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Thu, 30 May 2024 10:25:11 -0700 Subject: [PATCH] Add previewnet to supported networks --- config/contract.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/config/contract.go b/config/contract.go index bcfa883d7..8711a8531 100644 --- a/config/contract.go +++ b/config/contract.go @@ -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 {