fixed aliases in project - change not updated from master
@@ -21,10 +21,11 @@ package cli
import (
"errors"
"fmt"
- "github.com/onflow/flow-cli/flow/config/manipulators"
"path"
"strings"
+ "github.com/onflow/flow-cli/flow/config/manipulators"
+
"github.com/onflow/flow-go-sdk"
"github.com/onflow/flow-go-sdk/crypto"
"github.com/spf13/afero"
@@ -261,7 +262,7 @@ func (p *Project) GetAliases(network string) map[string]string {
// get all contracts for selected network and if any has an address as target make it an alias
for _, contract := range p.conf.Contracts.GetByNetwork(network) {
if contract.IsAlias() {
- aliases[contract.Name] = contract.Alias
+ aliases[path.Clean(contract.Source)] = contract.Alias
}
}
