Skip to content

Commit

Permalink
Fixed a bug where the rpc address and fork network weren't updated du…
Browse files Browse the repository at this point in the history
…ring export re-init.
  • Loading branch information
BogdanHabic committed Mar 5, 2021
1 parent d8242ec commit 4e99ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var exportInitCmd = &cobra.Command{
if rpcAddress == "" {
rpcAddress = promptRpcAddress()
}
if network.RpcAddress == "" {
if network.RpcAddress != rpcAddress {
network.RpcAddress = rpcAddress
}

Expand All @@ -134,7 +134,7 @@ var exportInitCmd = &cobra.Command{
}
forkedNetwork = promptForkedNetwork(networkNames)
}
if network.ForkedNetwork == "" {
if network.ForkedNetwork != forkedNetwork {
network.ForkedNetwork = forkedNetwork
}

Expand Down

0 comments on commit 4e99ec5

Please sign in to comment.