Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cmd/blockchaincmd/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ manage your Blockchain configurations and live deployments.`,
cmd.AddCommand(newExportCmd())
// blockchain import
cmd.AddCommand(newImportCmd())
// blockchain publish
cmd.AddCommand(newPublishCmd())
// blockchain upgrade
cmd.AddCommand(upgradecmd.NewCmd(app))
// blockchain stats
cmd.AddCommand(newStatsCmd())
// blockchain configure
cmd.AddCommand(newConfigureCmd())
// blockchain VMID
Expand Down
7 changes: 6 additions & 1 deletion cmd/blockchaincmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"strings"
"unicode"

"github.com/ava-labs/subnet-evm/params/extras"

"github.com/ava-labs/avalanche-cli/cmd/flags"
"github.com/ava-labs/avalanche-cli/pkg/cobrautils"
"github.com/ava-labs/avalanche-cli/pkg/constants"
Expand Down Expand Up @@ -513,7 +515,10 @@ func sendMetrics(repoName, blockchainName string) error {
if err != nil {
return err
}
conf := params.GetExtra(genesis.Config).GenesisPrecompiles
var conf extras.Precompiles
params.WithTempRegisteredExtras(func() {
conf = params.GetExtra(genesis.Config).GenesisPrecompiles
})
precompiles := make([]string, 0, 6)
for precompileName := range conf {
precompileTag := "precompile-" + precompileName
Expand Down
15 changes: 7 additions & 8 deletions cmd/blockchaincmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1175,14 +1175,13 @@ func deployBlockchain(cmd *cobra.Command, args []string) error {
deployRelayerFlags.CChainFundingKey = "ewoq"
deployRelayerFlags.CChainAmount = constants.DefaultRelayerAmount
}
if network.Kind == models.Granite {
deployRelayerFlags.BlockchainsToRelay = []string{blockchainName}
}
if err := relayercmd.CallDeploy(nil, deployRelayerFlags, network); err != nil {
relayerErr = err
ux.Logger.RedXToUser("Relayer is not deployed due to: %v", relayerErr)
} else {
ux.Logger.GreenCheckmarkToUser("Relayer is successfully deployed")
if network.Kind != models.Granite {
if err := relayercmd.CallDeploy(nil, deployRelayerFlags, network); err != nil {
relayerErr = err
ux.Logger.RedXToUser("Relayer is not deployed due to: %v", relayerErr)
} else {
ux.Logger.GreenCheckmarkToUser("Relayer is successfully deployed")
}
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/blockchaincmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ or importing from blockchains running public networks
(e.g. created manually or with the deprecated subnet-cli)`,
RunE: cobrautils.CommandSuiteUsage,
}
// blockchain import file
cmd.AddCommand(newImportFileCmd())
// blockchain import public
cmd.AddCommand(newImportPublicCmd())
return cmd
Expand Down
Loading
Loading